I'm trying to call "m_pDevice->CreatePipelineState" for a MeshShader pipeline. But failed in "m_pDevice->QueryInterface" for obtaining a ID3D12Device2 handle.
ID3D12Device2* pDevice2; HRESULT hr = m_pDevice->QueryInterface(IID_PPV_ARGS(&pDevice2)); pDevice2->CreatePipelineState(&desc, IID_PPV_ARGS(&pPipelineState));
HRESULT: E_NOINTERFACE No such interface supported.
I searched for a long time but still can't find out why. Does anyone have any ideas what this could be?
IDE: VS2017 Enterprise 15.9.51 OS: Windows 10 2009(19043.1706) Windows SDK: 10.0.19041.0 Graphics card: RTX 2060
have tried:
- configue "Windows SDK Version" in Debug-Properties to 10.0.19041.0
- reinstall IDE
- reinstall Windows SDK kits
- update graphics card driver up-to-date
- Check FeatureSupport "D3D12_FEATURE_D3D12_OPTIONS7" succeed.