[d3d11] Stub out OpenSharedResourceGeneric on non-Windows

This commit is contained in:
Joshua Ashton 2022-08-21 19:05:59 +00:00 committed by Philip Rebohle
parent be33ccbce9
commit 801d97806d
1 changed files with 5 additions and 0 deletions

View File

@ -2256,6 +2256,7 @@ namespace dxvk {
if (ppResource == nullptr)
return S_FALSE;
#ifdef _WIN32
HANDLE ntHandle = IsKmtHandle ? openKmtHandle(hResource) : hResource;
if (ntHandle == INVALID_HANDLE_VALUE) {
@ -2298,6 +2299,10 @@ namespace dxvk {
Logger::err(e.message());
return E_INVALIDARG;
}
#else
Logger::warn("D3D11Device::OpenSharedResourceGeneric: Not supported on this platform.");
return E_INVALIDARG;
#endif
}