1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-15 07:29:17 +01:00

[d3d11] Add D3D11On12CreateDevice stub

This commit is contained in:
Krzysztof Bogacki 2022-02-06 20:50:26 +01:00 committed by Philip Rebohle
parent 2673d74270
commit b5d7b42e65
2 changed files with 21 additions and 0 deletions

View File

@ -3,3 +3,4 @@ EXPORTS
D3D11CoreCreateDevice @18
D3D11CreateDevice @22
D3D11CreateDeviceAndSwapChain @23
D3D11On12CreateDevice @24

View File

@ -242,4 +242,24 @@ extern "C" {
ppDevice, pFeatureLevel, ppImmediateContext);
}
DLLEXPORT HRESULT __stdcall D3D11On12CreateDevice(
IUnknown* pDevice,
UINT Flags,
const D3D_FEATURE_LEVEL* pFeatureLevels,
UINT FeatureLevels,
IUnknown* const* ppCommandQueues,
UINT NumQueues,
UINT NodeMask,
ID3D11Device** ppDevice,
ID3D11DeviceContext** ppImmediateContext,
D3D_FEATURE_LEVEL* pChosenFeatureLevel) {
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::err("D3D11On12CreateDevice: Not implemented");
return E_NOTIMPL;
}
}