mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 16:36:31 +00:00
Fix incorrect stride when access chaining into vectors within matrices
* This would only break for row-major matrices where the index needs to pull out a column.
This commit is contained in:
@@ -2357,7 +2357,7 @@ ShaderVariable Debugger::ReadFromPointer(const ShaderVariable &ptr) const
|
||||
for(uint8_t c = 0; c < var.columns; c++)
|
||||
{
|
||||
apiWrapper->ReadBufferValue(bind, offset + c * matrixStride, VarTypeByteSize(var.type),
|
||||
VarElemPointer(var, VarTypeByteSize(var.type) * c));
|
||||
VarElemPointer(var, c));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user