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

Function MakeLiteralNumberOperand

test/binary_parse_test.cpp:168–171  ·  view source on GitHub ↗

Returns a parsed operand for a literal unsigned integer value at the given word offset within an instruction.

Source from the content-addressed store, hash-verified

166// Returns a parsed operand for a literal unsigned integer value at the given
167// word offset within an instruction.
168spv_parsed_operand_t MakeLiteralNumberOperand(uint16_t offset) {
169 return {offset, 1, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_NUMBER_UNSIGNED_INT,
170 32};
171}
172
173// Returns a parsed operand for a literal string value at the given
174// word offset within an instruction.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected