On 28/8/2019 10:00 pm, Nikolay Sivov wrote:
+ hr = IUnknown_QueryInterface(device, &IID_ID3D11Device, (void **)&d3d_device); + if (FAILED(hr)) + hr = IUnknown_QueryInterface(device, &IID_ID3D12Device, (void **)&d3d_device);
Can we query for IDXGIDevice instead?
Yes, I will use IDXGIDevice instead.
test_create_dxgi_device_manager(); + test_reset_device();
Please use existing function for that.
Also, what's a point of d3d12 device case?
OK, I just found that it also support d3d12 device when writing tests. But it seems that debian testbot didn't support d3d12. And since we will use IDXGIDevice in the device manager struct instead, this will become not so important. I will drop these tests in next try.
Thanks.