dxgi: Add IDXGIAdapter4 stub.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a27dbb2d5c
commit
7e7d03ed59
|
@ -30,6 +30,7 @@
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
#include "objbase.h"
|
#include "objbase.h"
|
||||||
|
|
||||||
|
#include "dxgi1_6.h"
|
||||||
#include "d3d11_4.h"
|
#include "d3d11_4.h"
|
||||||
#ifdef D3D11_INIT_GUID
|
#ifdef D3D11_INIT_GUID
|
||||||
#include "initguid.h"
|
#include "initguid.h"
|
||||||
|
|
|
@ -34,6 +34,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_QueryInterface(IWineDXGIAdapter *i
|
||||||
TRACE("iface %p, iid %s, out %p.\n", iface, debugstr_guid(iid), out);
|
TRACE("iface %p, iid %s, out %p.\n", iface, debugstr_guid(iid), out);
|
||||||
|
|
||||||
if (IsEqualGUID(iid, &IID_IWineDXGIAdapter)
|
if (IsEqualGUID(iid, &IID_IWineDXGIAdapter)
|
||||||
|
|| IsEqualGUID(iid, &IID_IDXGIAdapter4)
|
||||||
|| IsEqualGUID(iid, &IID_IDXGIAdapter3)
|
|| IsEqualGUID(iid, &IID_IDXGIAdapter3)
|
||||||
|| IsEqualGUID(iid, &IID_IDXGIAdapter2)
|
|| IsEqualGUID(iid, &IID_IDXGIAdapter2)
|
||||||
|| IsEqualGUID(iid, &IID_IDXGIAdapter1)
|
|| IsEqualGUID(iid, &IID_IDXGIAdapter1)
|
||||||
|
@ -301,6 +302,13 @@ static void STDMETHODCALLTYPE dxgi_adapter_UnregisterVideoMemoryBudgetChangeNoti
|
||||||
FIXME("iface %p, cookie %#x stub!\n", iface, cookie);
|
FIXME("iface %p, cookie %#x stub!\n", iface, cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetDesc3(IWineDXGIAdapter *iface, DXGI_ADAPTER_DESC3 *desc)
|
||||||
|
{
|
||||||
|
FIXME("iface %p, desc %p stub!\n", iface, desc);
|
||||||
|
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl =
|
static const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl =
|
||||||
{
|
{
|
||||||
dxgi_adapter_QueryInterface,
|
dxgi_adapter_QueryInterface,
|
||||||
|
@ -325,6 +333,8 @@ static const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl =
|
||||||
dxgi_adapter_SetVideoMemoryReservation,
|
dxgi_adapter_SetVideoMemoryReservation,
|
||||||
dxgi_adapter_RegisterVideoMemoryBudgetChangeNotificationEvent,
|
dxgi_adapter_RegisterVideoMemoryBudgetChangeNotificationEvent,
|
||||||
dxgi_adapter_UnregisterVideoMemoryBudgetChangeNotification,
|
dxgi_adapter_UnregisterVideoMemoryBudgetChangeNotification,
|
||||||
|
/* IDXGIAdapter4 methods */
|
||||||
|
dxgi_adapter_GetDesc3,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dxgi_adapter *unsafe_impl_from_IDXGIAdapter(IDXGIAdapter *iface)
|
struct dxgi_adapter *unsafe_impl_from_IDXGIAdapter(IDXGIAdapter *iface)
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#pragma makedep header
|
#pragma makedep header
|
||||||
|
|
||||||
import "dxgi1_5.idl";
|
import "dxgi1_6.idl";
|
||||||
|
|
||||||
[
|
[
|
||||||
object,
|
object,
|
||||||
|
@ -56,7 +56,7 @@ interface IWineDXGIDeviceParent : IUnknown
|
||||||
local,
|
local,
|
||||||
uuid(17399d75-964e-4c03-99f8-9d4fd196dd62)
|
uuid(17399d75-964e-4c03-99f8-9d4fd196dd62)
|
||||||
]
|
]
|
||||||
interface IWineDXGIAdapter : IDXGIAdapter3
|
interface IWineDXGIAdapter : IDXGIAdapter4
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue