1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxgi] Implement DXGIDeclareAdapterRemovalSupport

This commit is contained in:
Philip Rebohle 2020-04-28 15:20:43 +02:00
parent 5d0efd87c2
commit ca59d8e74b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 11 additions and 0 deletions

View File

@ -3,3 +3,4 @@ EXPORTS
CreateDXGIFactory
CreateDXGIFactory1
CreateDXGIFactory2
DXGIDeclareAdapterRemovalSupport

View File

@ -34,4 +34,14 @@ extern "C" {
DLLEXPORT HRESULT __stdcall CreateDXGIFactory(REFIID riid, void **ppFactory) {
return dxvk::createDxgiFactory(0, riid, ppFactory);
}
DLLEXPORT HRESULT __stdcall DXGIDeclareAdapterRemovalSupport() {
static bool enabled = false;
if (std::exchange(enabled, true))
return 0x887a0036; // DXGI_ERROR_ALREADY_EXISTS;
dxvk::Logger::warn("DXGIDeclareAdapterRemovalSupport: Stub");
return S_OK;
}
}