OpTypeRuntimeArray is an aggregate and therefore can have duplicate
declarations.
const spv_parsed_instruction_t* inst) {
const SpvOp opcode = static_cast<SpvOp>(inst->opcode);
if (spvOpcodeGeneratesType(opcode)) {
- if (opcode == SpvOpTypeArray || opcode == SpvOpTypeStruct) {
+ if (opcode == SpvOpTypeArray || opcode == SpvOpTypeRuntimeArray ||
+ opcode == SpvOpTypeStruct) {
// Duplicate declarations of aggregates are allowed.
return SPV_SUCCESS;
}
%struct2 = OpTypeStruct %floatt %floatt %vec3t
%false = OpConstantFalse %boolt
%true = OpConstantTrue %boolt
+%runtime_arrayt = OpTypeRuntimeArray %floatt
+%runtime_arrayt2 = OpTypeRuntimeArray %floatt
)";
return header;