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

Function MeshShadingPass

source/val/validate_mesh_shading.cpp:219–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219spv_result_t MeshShadingPass(ValidationState_t& _, const Instruction* inst) {
220 const spv::Op opcode = inst->opcode();
221 switch (opcode) {
222 case spv::Op::OpEmitMeshTasksEXT:
223 return ValidateEmitMeshTasks(_, inst);
224 case spv::Op::OpSetMeshOutputsEXT:
225 return ValidateSetMeshOutputs(_, inst);
226 case spv::Op::OpVariable:
227 return ValidateMeshVariable(_, inst);
228 // No validation rules (for the moment).
229 case spv::Op::OpWritePackedPrimitiveIndices4x8NV:
230 default:
231 break;
232 }
233
234 return SPV_SUCCESS;
235}
236
237} // namespace val
238} // namespace spvtools

Calls 4

ValidateEmitMeshTasksFunction · 0.85
ValidateSetMeshOutputsFunction · 0.85
ValidateMeshVariableFunction · 0.85
opcodeMethod · 0.45

Tested by

no test coverage detected