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

Method SetModuleHeader

source/opt/ir_loader.h:53–56  ·  view source on GitHub ↗

Sets the fields in the module's header to the given parameters.

Source from the content-addressed store, hash-verified

51
52 // Sets the fields in the module's header to the given parameters.
53 void SetModuleHeader(uint32_t magic, uint32_t version, uint32_t generator,
54 uint32_t bound, uint32_t reserved) {
55 module_->SetHeader({magic, version, generator, bound, reserved});
56 }
57 // Adds an instruction to the module. Returns true if no error occurs. This
58 // method will properly capture and store the data provided in |inst| so that
59 // |inst| is no longer needed after returning.

Callers 1

SetSpvHeaderFunction · 0.80

Calls 1

SetHeaderMethod · 0.80

Tested by

no test coverage detected