mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxgi] Implement DXGIDeclareAdapterRemovalSupport
This commit is contained in:
parent
5d0efd87c2
commit
ca59d8e74b
@ -3,3 +3,4 @@ EXPORTS
|
|||||||
CreateDXGIFactory
|
CreateDXGIFactory
|
||||||
CreateDXGIFactory1
|
CreateDXGIFactory1
|
||||||
CreateDXGIFactory2
|
CreateDXGIFactory2
|
||||||
|
DXGIDeclareAdapterRemovalSupport
|
||||||
|
@ -34,4 +34,14 @@ extern "C" {
|
|||||||
DLLEXPORT HRESULT __stdcall CreateDXGIFactory(REFIID riid, void **ppFactory) {
|
DLLEXPORT HRESULT __stdcall CreateDXGIFactory(REFIID riid, void **ppFactory) {
|
||||||
return dxvk::createDxgiFactory(0, riid, 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