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:
parent
5d0efd87c2
commit
ca59d8e74b
@ -3,3 +3,4 @@ EXPORTS
|
||||
CreateDXGIFactory
|
||||
CreateDXGIFactory1
|
||||
CreateDXGIFactory2
|
||||
DXGIDeclareAdapterRemovalSupport
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user