mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 23:46:41 +00:00
Explicitly disable RT feature query & D3D12.3 (?) interfaces
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user