Commit 2d13e0f1 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11: Add ID3D11Device stub interface.

parent fb01bc04
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "objbase.h" #include "objbase.h"
#include "d3d10_1.h" #include "d3d10_1.h"
#include "d3d11_1.h"
#ifdef D3D10CORE_INIT_GUID #ifdef D3D10CORE_INIT_GUID
#include "initguid.h" #include "initguid.h"
#endif #endif
...@@ -331,6 +332,7 @@ struct d3d10_query *unsafe_impl_from_ID3D10Query(ID3D10Query *iface) DECLSPEC_HI ...@@ -331,6 +332,7 @@ struct d3d10_query *unsafe_impl_from_ID3D10Query(ID3D10Query *iface) DECLSPEC_HI
struct d3d10_device struct d3d10_device
{ {
IUnknown IUnknown_inner; IUnknown IUnknown_inner;
ID3D11Device ID3D11Device_iface;
ID3D10Device1 ID3D10Device1_iface; ID3D10Device1 ID3D10Device1_iface;
ID3D10Multithread ID3D10Multithread_iface; ID3D10Multithread ID3D10Multithread_iface;
IWineDXGIDeviceParent IWineDXGIDeviceParent_iface; IWineDXGIDeviceParent IWineDXGIDeviceParent_iface;
......
...@@ -92,7 +92,7 @@ static void test_device_interfaces(void) ...@@ -92,7 +92,7 @@ static void test_device_interfaces(void)
if (SUCCEEDED(hr = IDXGIDevice_QueryInterface(device, &IID_ID3D11Device, (void **)&iface))) if (SUCCEEDED(hr = IDXGIDevice_QueryInterface(device, &IID_ID3D11Device, (void **)&iface)))
IUnknown_Release(iface); IUnknown_Release(iface);
todo_wine ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */, ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Failed to query ID3D11Device interface, hr %#x.\n", hr); "Failed to query ID3D11Device interface, hr %#x.\n", hr);
refcount = IDXGIDevice_Release(device); refcount = IDXGIDevice_Release(device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment