Skip to content

Commit

Permalink
Limit BufferStore to maximum of the number of components in the format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Dec 19, 2024
1 parent 4ab1d61 commit 2dda3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderdoc/driver/shaders/dxil/dxil_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
numComps = 0;
// Modify the correct components
const uint32_t valueStart = (dxOpCode == DXOp::TextureStore) ? 5 : 4;
for(uint32_t c = 0; c < 4; ++c)
for(uint32_t c = 0; c < (uint32_t)fmt.numComps; ++c)
{
if(GetShaderVariable(inst.args[c + valueStart], opCode, dxOpCode, arg))
{
Expand Down

0 comments on commit 2dda3e2

Please sign in to comment.