D3D12 Shader Debugging error for invalid sample return type

This commit is contained in:
Jake Turner
2024-12-11 11:35:51 +00:00
parent 35ddf65d62
commit 893cf6304e
@@ -276,6 +276,10 @@ bool D3D12ShaderDebug::CalculateSampleGather(
};
cbufferData.debugSampleRetType = retTypes[resourceData.retType];
if(cbufferData.debugSampleRetType == 0)
{
RDCERR("Unsupported return type %d in sample operation", resourceData.retType);
}
cbufferData.debugSampleGatherChannel = (int)gatherChannel;
cbufferData.debugSampleSampleIndex = multisampleIndex;