diff --git a/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp b/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp index af5f86b8b..cfcb06c18 100644 --- a/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp +++ b/renderdoc/driver/d3d12/d3d12_command_list_wrap.cpp @@ -3952,16 +3952,12 @@ void WrappedID3D12GraphicsCommandList::FinaliseExecuteIndirectEvents(BakedCmdLis if(arg.Constant.RootParameterIndex < state.graphics.sigelems.size()) { - state.graphics.sigelems[arg.Constant.RootParameterIndex].constants.resize_for_index( - arg.Constant.Num32BitValuesToSet + arg.Constant.DestOffsetIn32BitValues); state.graphics.sigelems[arg.Constant.RootParameterIndex].SetConstants( arg.Constant.Num32BitValuesToSet, data32, arg.Constant.DestOffsetIn32BitValues); } if(arg.Constant.RootParameterIndex < state.compute.sigelems.size()) { - state.compute.sigelems[arg.Constant.RootParameterIndex].constants.resize_for_index( - arg.Constant.Num32BitValuesToSet + arg.Constant.DestOffsetIn32BitValues); state.compute.sigelems[arg.Constant.RootParameterIndex].SetConstants( arg.Constant.Num32BitValuesToSet, data32, arg.Constant.DestOffsetIn32BitValues); } diff --git a/renderdoc/driver/d3d12/d3d12_state.cpp b/renderdoc/driver/d3d12/d3d12_state.cpp index 24fb89d83..70d9676ea 100644 --- a/renderdoc/driver/d3d12/d3d12_state.cpp +++ b/renderdoc/driver/d3d12/d3d12_state.cpp @@ -110,16 +110,12 @@ void D3D12RenderState::ResolvePendingIndirectState(WrappedID3D12Device *device) if(comSig->sig.graphics) { graphics.sigelems.resize_for_index(arg.Constant.RootParameterIndex); - graphics.sigelems[arg.Constant.RootParameterIndex].constants.resize_for_index( - arg.Constant.Num32BitValuesToSet + arg.Constant.DestOffsetIn32BitValues); graphics.sigelems[arg.Constant.RootParameterIndex].SetConstants( arg.Constant.Num32BitValuesToSet, data32, arg.Constant.DestOffsetIn32BitValues); } else { compute.sigelems.resize_for_index(arg.Constant.RootParameterIndex); - compute.sigelems[arg.Constant.RootParameterIndex].constants.resize_for_index( - arg.Constant.Num32BitValuesToSet + arg.Constant.DestOffsetIn32BitValues); compute.sigelems[arg.Constant.RootParameterIndex].SetConstants( arg.Constant.Num32BitValuesToSet, data32, arg.Constant.DestOffsetIn32BitValues); }