Skip to content

Commit

Permalink
DXIL Debugger copy the type data from the Phi argument as well as values
Browse files Browse the repository at this point in the history
To support the case when the Phi node argument is storing the result from a Handle operation i.e. CBufferLoad, Sample
  • Loading branch information
Zorro666 committed Dec 4, 2024
1 parent 81816cc commit 2bd74fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion renderdoc/driver/shaders/dxil/dxil_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3038,7 +3038,10 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
{
ShaderVariable arg;
RDCASSERT(GetPhiShaderVariable(dxilValue, opCode, dxOpCode, arg));
result.value = arg.value;
rdcstr name = result.name;
// Copy the whole variable to ensure we get the correct type information
result = arg;
result.name = name;
break;
}
else
Expand Down

0 comments on commit 2bd74fe

Please sign in to comment.