public static bool IsDeviceRemoved(this ComPtr <ID3D12Device> device) => device.Get()->GetDeviceRemovedReason() != Windows.S_OK;
public static void PossibleDeviceDisconnect(this ComPtr <ID3D12Device> device) => PossibleDeviceDisconnect(device.Get());