| 57 | namespace descsroautil { |
| 58 | |
| 59 | bool IsDescriptorArray(IRContext* context, Instruction* var) { |
| 60 | Instruction* var_type_inst = GetVariableType(context, var); |
| 61 | if (var_type_inst == nullptr) return false; |
| 62 | return var_type_inst->opcode() == spv::Op::OpTypeArray && |
| 63 | HasDescriptorDecorations(context, var); |
| 64 | } |
| 65 | |
| 66 | bool IsDescriptorStruct(IRContext* context, Instruction* var) { |
| 67 | Instruction* var_type_inst = GetVariableType(context, var); |
no test coverage detected