Identify arrays of cbuffer registers properly to rename them

This commit is contained in:
baldurk
2015-06-26 19:18:44 +02:00
parent f5ddd7d2c8
commit 9692ef0cf3
+1 -1
View File
@@ -159,7 +159,7 @@ namespace renderdocui.Windows
}
else if (v.type.descriptor.rows > 0 && v.type.descriptor.cols > 0)
{
uint numRegs = v.type.descriptor.rows;
uint numRegs = v.type.descriptor.rows * Math.Max(1, v.type.descriptor.elements);
for (uint r = 0; r < numRegs; r++)
{