| 217 | } |
| 218 | |
| 219 | spv_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 |
no test coverage detected