1
0
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:
Philip Rebohle 2020-07-24 12:24:49 +02:00
parent 3b52cad243
commit 3322da4b94
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 15 additions and 4 deletions

View File

@ -1,6 +1,7 @@
LIBRARY DXGI.DLL
EXPORTS
CreateDXGIFactory
CreateDXGIFactory1
CreateDXGIFactory2
DXGIDeclareAdapterRemovalSupport
CreateDXGIFactory @9
CreateDXGIFactory1 @10
CreateDXGIFactory2 @11
DXGIDeclareAdapterRemovalSupport @16
DXGIGetDebugInterface1 @17

View File

@ -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;
}
}