mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
d3d/tests: Check that device implements IDXGIDevice1.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
718d35dcd6
commit
8b0b82a580
|
@ -95,6 +95,10 @@ static void test_device_interfaces(void)
|
|||
IDXGIAdapter_Release(dxgi_adapter);
|
||||
IDXGIDevice_Release(dxgi_device);
|
||||
|
||||
hr = ID3D10Device1_QueryInterface(device, &IID_IDXGIDevice1, (void **)&iface);
|
||||
ok(SUCCEEDED(hr), "Device should implement IDXGIDevice1.\n");
|
||||
IUnknown_Release(iface);
|
||||
|
||||
hr = ID3D10Device1_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
|
||||
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
|
||||
"Device should implement ID3D10Multithread interface, hr %#x.\n", hr);
|
||||
|
|
|
@ -240,6 +240,11 @@ static void test_device_interfaces(void)
|
|||
IUnknown_Release(dxgi_adapter);
|
||||
IUnknown_Release(dxgi_device);
|
||||
|
||||
hr = ID3D10Device_QueryInterface(device, &IID_IDXGIDevice1, (void **)&iface);
|
||||
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
|
||||
"Device should implement IDXGIDevice1.\n");
|
||||
if (SUCCEEDED(hr)) IUnknown_Release(iface);
|
||||
|
||||
hr = ID3D10Device_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
|
||||
ok(SUCCEEDED(hr), "Device should implement ID3D10Multithread interface, hr %#x.\n", hr);
|
||||
IUnknown_Release(iface);
|
||||
|
|
|
@ -288,6 +288,10 @@ static void test_device_interfaces(void)
|
|||
IDXGIAdapter_Release(dxgi_adapter);
|
||||
IDXGIDevice_Release(dxgi_device);
|
||||
|
||||
hr = ID3D11Device_QueryInterface(device, &IID_IDXGIDevice1, (void **)&iface);
|
||||
ok(SUCCEEDED(hr), "Device should implement IDXGIDevice1.\n");
|
||||
IUnknown_Release(iface);
|
||||
|
||||
hr = ID3D11Device_QueryInterface(device, &IID_ID3D10Multithread, (void **)&iface);
|
||||
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
|
||||
"Device should implement ID3D10Multithread interface, hr %#x.\n", hr);
|
||||
|
|
Loading…
Reference in a new issue