| 4210 | } |
| 4211 | |
| 4212 | spv_result_t ValidateExtInst(ValidationState_t& _, const Instruction* inst) { |
| 4213 | const spv_ext_inst_type_t ext_inst_type = |
| 4214 | spv_ext_inst_type_t(inst->ext_inst_type()); |
| 4215 | |
| 4216 | if (ext_inst_type == SPV_EXT_INST_TYPE_GLSL_STD_450) { |
| 4217 | return ValidateExtInstGlslStd450(_, inst); |
| 4218 | } else if (ext_inst_type == SPV_EXT_INST_TYPE_OPENCL_STD) { |
| 4219 | return ValidateExtInstOpenClStd(_, inst); |
| 4220 | } else if (ext_inst_type == SPV_EXT_INST_TYPE_OPENCL_DEBUGINFO_100 || |
| 4221 | ext_inst_type == |
| 4222 | SPV_EXT_INST_TYPE_NONSEMANTIC_SHADER_DEBUGINFO_100) { |
| 4223 | return ValidateExtInstDebugInfo(_, inst); |
| 4224 | } else if (ext_inst_type == SPV_EXT_INST_TYPE_NONSEMANTIC_CLSPVREFLECTION) { |
| 4225 | return ValidateExtInstNonsemanticClspvReflection(_, inst); |
| 4226 | } |
| 4227 | |
| 4228 | return SPV_SUCCESS; |
| 4229 | } |
| 4230 | |
| 4231 | spv_result_t ExtensionPass(ValidationState_t& _, const Instruction* inst) { |
| 4232 | const spv::Op opcode = inst->opcode(); |
no test coverage detected