mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-27 00:46:36 +00:00
Account for array stride when unrolling AoS in buffer viewer
This commit is contained in:
@@ -1902,7 +1902,8 @@ static void UnrollConstant(rdcstr prefix, uint32_t baseOffset, const ShaderConst
|
||||
for(const ShaderConstant &child : constant.type.members)
|
||||
{
|
||||
UnrollConstant(isArray ? QFormatStr("%1[%2]").arg(baseName).arg(a) : QString(baseName),
|
||||
baseOffset + constant.byteOffset, child, columns, props);
|
||||
baseOffset + constant.byteOffset + a * constant.type.descriptor.arrayByteStride,
|
||||
child, columns, props);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user