mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-12 09:41:03 +00:00
Fix column lookup via access chain in SPIR-V debugging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user