Skip to content

Commit 2dda3e2

Browse files
committed
Limit BufferStore to maximum of the number of components in the format
1 parent 4ab1d61 commit 2dda3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderdoc/driver/shaders/dxil/dxil_debug.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
21862186
numComps = 0;
21872187
// Modify the correct components
21882188
const uint32_t valueStart = (dxOpCode == DXOp::TextureStore) ? 5 : 4;
2189-
for(uint32_t c = 0; c < 4; ++c)
2189+
for(uint32_t c = 0; c < (uint32_t)fmt.numComps; ++c)
21902190
{
21912191
if(GetShaderVariable(inst.args[c + valueStart], opCode, dxOpCode, arg))
21922192
{

0 commit comments

Comments
 (0)