diff --git a/renderdoc/driver/d3d12/d3d12_shader_feedback.cpp b/renderdoc/driver/d3d12/d3d12_shader_feedback.cpp index ef812d8eb..a027c524a 100644 --- a/renderdoc/driver/d3d12/d3d12_shader_feedback.cpp +++ b/renderdoc/driver/d3d12/d3d12_shader_feedback.cpp @@ -328,6 +328,10 @@ void D3D12Replay::FetchShaderFeedback(uint32_t eventId) if(result.compute) { ID3D12RootSignature *sig = rm->GetCurrentAs(rs.compute.rootsig); + + if(!sig) + return; + modsig = ((WrappedID3D12RootSignature *)sig)->sig; space = modsig.maxSpaceIndex; @@ -337,6 +341,10 @@ void D3D12Replay::FetchShaderFeedback(uint32_t eventId) else { ID3D12RootSignature *sig = rm->GetCurrentAs(rs.graphics.rootsig); + + if(!sig) + return; + modsig = ((WrappedID3D12RootSignature *)sig)->sig; space = modsig.maxSpaceIndex;