mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
[dxgi] Add DXGIGetDebugInterface1 stub
Required for Metro Exodus. Also exports the DXGI entry points with their correct ordinals.
This commit is contained in:
parent
3b52cad243
commit
3322da4b94
@ -1,6 +1,7 @@
|
||||
LIBRARY DXGI.DLL
|
||||
EXPORTS
|
||||
CreateDXGIFactory
|
||||
CreateDXGIFactory1
|
||||
CreateDXGIFactory2
|
||||
DXGIDeclareAdapterRemovalSupport
|
||||
CreateDXGIFactory @9
|
||||
CreateDXGIFactory1 @10
|
||||
CreateDXGIFactory2 @11
|
||||
DXGIDeclareAdapterRemovalSupport @16
|
||||
DXGIGetDebugInterface1 @17
|
||||
|
@ -44,4 +44,14 @@ extern "C" {
|
||||
dxvk::Logger::warn("DXGIDeclareAdapterRemovalSupport: Stub");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
DLLEXPORT HRESULT __stdcall DXGIGetDebugInterface1(UINT Flags, REFIID riid, void **ppDebug) {
|
||||
static bool errorShown = false;
|
||||
|
||||
if (!std::exchange(errorShown, true))
|
||||
dxvk::Logger::warn("DXGIGetDebugInterface1: Stub");
|
||||
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user