MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ValidateExtInst

Function ValidateExtInst

source/val/validate_extensions.cpp:4212–4229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4210}
4211
4212spv_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
4231spv_result_t ExtensionPass(ValidationState_t& _, const Instruction* inst) {
4232 const spv::Op opcode = inst->opcode();

Callers 1

ExtensionPassFunction · 0.85

Tested by

no test coverage detected