mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Ensure we can set ExecuteIndirect root constant values
* If the array isn't large enough we must resize it, this was already done for CBV/SRV/UAV root parameter sets.
This commit is contained in:
@@ -109,6 +109,7 @@ 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(
|
||||
@@ -116,6 +117,7 @@ void D3D12RenderState::ResolvePendingIndirectState(WrappedID3D12Device *device)
|
||||
}
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user