mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-12 04:54:17 +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
|
LIBRARY DXGI.DLL
|
||||||
EXPORTS
|
EXPORTS
|
||||||
CreateDXGIFactory
|
CreateDXGIFactory @9
|
||||||
CreateDXGIFactory1
|
CreateDXGIFactory1 @10
|
||||||
CreateDXGIFactory2
|
CreateDXGIFactory2 @11
|
||||||
DXGIDeclareAdapterRemovalSupport
|
DXGIDeclareAdapterRemovalSupport @16
|
||||||
|
DXGIGetDebugInterface1 @17
|
||||||
|
@ -44,4 +44,14 @@ extern "C" {
|
|||||||
dxvk::Logger::warn("DXGIDeclareAdapterRemovalSupport: Stub");
|
dxvk::Logger::warn("DXGIDeclareAdapterRemovalSupport: Stub");
|
||||||
return S_OK;
|
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