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

Function SetSpvHeader

source/opt/build_module.cpp:30–36  ·  view source on GitHub ↗

Sets the module header for IrLoader. Meets the interface requirement of spvBinaryParse().

Source from the content-addressed store, hash-verified

28// Sets the module header for IrLoader. Meets the interface requirement of
29// spvBinaryParse().
30spv_result_t SetSpvHeader(void* builder, spv_endianness_t, uint32_t magic,
31 uint32_t version, uint32_t generator,
32 uint32_t id_bound, uint32_t reserved) {
33 reinterpret_cast<opt::IrLoader*>(builder)->SetModuleHeader(
34 magic, version, generator, id_bound, reserved);
35 return SPV_SUCCESS;
36}
37
38// Processes a parsed instruction for IrLoader. Meets the interface requirement
39// of spvBinaryParse().

Callers

nothing calls this directly

Calls 1

SetModuleHeaderMethod · 0.80

Tested by

no test coverage detected