Explicitly disable RT feature query & D3D12.3 (?) interfaces

This commit is contained in:
baldurk
2018-12-13 12:53:46 +00:00
parent 1fc51777d2
commit e34833843c
3 changed files with 22 additions and 0 deletions
@@ -994,6 +994,11 @@ HRESULT STDMETHODCALLTYPE WrappedID3D12GraphicsCommandList2::QueryInterface(REFI
AddRef();
return S_OK;
}
else if(riid == __uuidof(ID3D12GraphicsCommandList3))
{
RDCERR("ID3D12GraphicsCommandList3 not supported");
return E_NOINTERFACE;
}
else if(riid == __uuidof(ID3D12CommandList))
{
*ppvObject = (ID3D12CommandList *)this;
+5
View File
@@ -576,6 +576,11 @@ HRESULT WrappedID3D12Device::QueryInterface(REFIID riid, void **ppvObject)
return E_NOINTERFACE;
}
}
else if(riid == __uuidof(ID3D12Device4))
{
RDCERR("ID3D12Device4 not supported");
return E_NOINTERFACE;
}
else if(riid == __uuidof(ID3D12InfoQueue))
{
RDCWARN(
@@ -2432,6 +2432,18 @@ HRESULT WrappedID3D12Device::CheckFeatureSupport(D3D12_FEATURE Feature, void *pF
return S_OK;
}
if(Feature == D3D12_FEATURE_D3D12_OPTIONS5)
{
D3D12_FEATURE_DATA_D3D12_OPTIONS5 *opts =
(D3D12_FEATURE_DATA_D3D12_OPTIONS5 *)pFeatureSupportData;
if(FeatureSupportDataSize != sizeof(D3D12_FEATURE_DATA_D3D12_OPTIONS5))
return E_INVALIDARG;
// don't support raytracing
opts->RaytracingTier = D3D12_RAYTRACING_TIER_NOT_SUPPORTED;
return S_OK;
}
return m_pDevice->CheckFeatureSupport(Feature, pFeatureSupportData, FeatureSupportDataSize);
}