Fix column lookup via access chain in SPIR-V debugging

This commit is contained in:
baldurk
2025-12-02 12:17:36 +00:00
parent 0a15153330
commit 7c438edd2a
@@ -3584,7 +3584,9 @@ DeviceOpResult Debugger::ReadFromPointer(const ShaderVariable &ptr, ShaderVariab
for(uint32_t row = 0; row < ret.rows; row++)
copyComp(ret, row, tmp, row * ret.columns + scalar0);
// it's a vector now, even if it was a matrix before
// it's a vector now, even if it was a matrix before.
// since we have the convention of row vectors in RenderDoc, adjust the size too
ret.columns = ret.rows;
ret.rows = 1;
}
}