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

Function ValidateGraph

source/val/validate_graph.cpp:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205spv_result_t ValidateGraph(ValidationState_t& _, const Instruction* inst) {
206 // Result Type must be an OpTypeGraphARM
207 if (!IsGraphType(_, inst->type_id())) {
208 return _.diag(SPV_ERROR_INVALID_DATA, inst)
209 << spvOpcodeString(inst->opcode())
210 << " Result Type must be an OpTypeGraphARM.";
211 }
212
213 return SPV_SUCCESS;
214}
215
216spv_result_t ValidateGraphInput(ValidationState_t& _, const Instruction* inst) {
217 // Check type of InputIndex

Callers 1

GraphPassFunction · 0.85

Calls 5

IsGraphTypeFunction · 0.85
spvOpcodeStringFunction · 0.85
diagMethod · 0.80
type_idMethod · 0.45
opcodeMethod · 0.45

Tested by

no test coverage detected