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

Function ValidateGraphEntryPoints

source/val/validate.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158spv_result_t ValidateGraphEntryPoints(ValidationState_t& _) {
159 if (_.graph_entry_points().empty() &&
160 _.HasCapability(spv::Capability::GraphARM)) {
161 return _.diag(SPV_ERROR_INVALID_BINARY, nullptr)
162 << "No OpGraphEntryPointARM instruction was found but the GraphARM "
163 "capability is declared.";
164 }
165 return SPV_SUCCESS;
166}
167
168spv_result_t ValidateBinaryUsingContextAndValidationState(
169 const spv_context_t& context, const uint32_t* words, const size_t num_words,

Calls 4

graph_entry_pointsMethod · 0.80
diagMethod · 0.80
emptyMethod · 0.45
HasCapabilityMethod · 0.45

Tested by

no test coverage detected