Only find root SRVs when searching for SRVs

This commit is contained in:
baldurk
2022-10-03 20:10:41 +01:00
parent bbc5bd74b9
commit 849fe18ac1
+1 -1
View File
@@ -638,7 +638,7 @@ D3D12Descriptor D3D12DebugAPIWrapper::FindDescriptor(DXBCBytecode::OperandType t
if(IsShaderParameterVisible(GetShaderType(), param.ShaderVisibility))
{
if(param.ParameterType == D3D12_ROOT_PARAMETER_TYPE_SRV && element.type == eRootSRV &&
type != DXBCBytecode::TYPE_UNORDERED_ACCESS_VIEW)
type == DXBCBytecode::TYPE_RESOURCE)
{
if(param.Descriptor.ShaderRegister == slot.shaderRegister &&
param.Descriptor.RegisterSpace == slot.registerSpace)