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

Function IsGraph

source/val/validate_graph.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool IsGraph(ValidationState_t& _, uint32_t id) {
45 auto def = _.FindDef(id);
46 if (!def || def->opcode() != spv::Op::OpGraphARM) {
47 return false;
48 }
49 return true;
50}
51
52bool IsGraphType(ValidationState_t& _, uint32_t id) {
53 auto def = _.FindDef(id);

Callers 1

ValidateGraphEntryPointFunction · 0.85

Calls 2

FindDefMethod · 0.80
opcodeMethod · 0.45

Tested by

no test coverage detected