mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Fix calculation of matrix variable sizes. Closes #1927
This commit is contained in:
@@ -765,9 +765,9 @@ uint32_t BufferFormatter::GetVarSize(const ShaderConstant &var)
|
||||
if(var.type.descriptor.rows > 1)
|
||||
{
|
||||
if(var.type.descriptor.rowMajorStorage)
|
||||
size = var.type.descriptor.matrixByteStride * var.type.descriptor.columns;
|
||||
else
|
||||
size = var.type.descriptor.matrixByteStride * var.type.descriptor.rows;
|
||||
else
|
||||
size = var.type.descriptor.matrixByteStride * var.type.descriptor.columns;
|
||||
}
|
||||
|
||||
if(var.type.descriptor.elements > 1)
|
||||
|
||||
Reference in New Issue
Block a user