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

Function ExpectedHeaderForBound

test/binary_parse_test.cpp:154–157  ·  view source on GitHub ↗

Returns the expected SPIR-V module header words for the Khronos Assembler generator, and with a given Id bound.

Source from the content-addressed store, hash-verified

152// Returns the expected SPIR-V module header words for the Khronos
153// Assembler generator, and with a given Id bound.
154std::vector<uint32_t> ExpectedHeaderForBound(uint32_t bound) {
155 return {spv::MagicNumber, 0x10000,
156 SPV_GENERATOR_WORD(SPV_GENERATOR_KHRONOS_ASSEMBLER, 0), bound, 0};
157}
158
159// Returns a parsed operand for a non-number value at the given word offset
160// within an instruction.

Callers 2

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected