mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 05:50:51 +00:00
Fix vector/matrix constants having members added
* Only arrays and structs should have members, vectors and matrices have values stored directly
This commit is contained in:
@@ -568,10 +568,12 @@ void Processor::RegisterOp(Iter it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
v.members.resize(decoded.constituents.size());
|
||||
for(size_t i = 0; i < v.members.size(); i++)
|
||||
v.members[i] = constants[decoded.constituents[i]].value;
|
||||
else
|
||||
{
|
||||
v.members.resize(decoded.constituents.size());
|
||||
for(size_t i = 0; i < v.members.size(); i++)
|
||||
v.members[i] = constants[decoded.constituents[i]].value;
|
||||
}
|
||||
|
||||
constants[decoded.result] = {decoded.resultType, decoded.result, v, decoded.constituents};
|
||||
if(opdata.op == Op::SpecConstantComposite)
|
||||
|
||||
Reference in New Issue
Block a user