mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 10:21:48 +00:00
Fix disassembly of vectors
This commit is contained in:
@@ -2048,8 +2048,16 @@ void MakeConstantBlockVariables(SPVTypeData *type, rdctype::array<ShaderConstant
|
||||
if(type->decorations[i][d].decoration == spv::DecorationRowMajor)
|
||||
cblock[i].type.descriptor.rowMajorStorage = true;
|
||||
|
||||
cblock[i].type.descriptor.rows = t->vectorSize;
|
||||
cblock[i].type.descriptor.cols = t->matrixSize;
|
||||
if(t->type == SPVTypeData::eMatrix)
|
||||
{
|
||||
cblock[i].type.descriptor.rows = t->vectorSize;
|
||||
cblock[i].type.descriptor.cols = t->matrixSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
cblock[i].type.descriptor.rows = 1;
|
||||
cblock[i].type.descriptor.cols = t->vectorSize;
|
||||
}
|
||||
|
||||
cblock[i].type.descriptor.name = t->GetName() + suffix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user