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

Function MakeSimpleOperand

test/binary_parse_test.cpp:161–164  ·  view source on GitHub ↗

Returns a parsed operand for a non-number value at the given word offset within an instruction.

Source from the content-addressed store, hash-verified

159// Returns a parsed operand for a non-number value at the given word offset
160// within an instruction.
161spv_parsed_operand_t MakeSimpleOperand(uint16_t offset,
162 spv_operand_type_t type) {
163 return {offset, 1, type, SPV_NUMBER_NONE, 0};
164}
165
166// Returns a parsed operand for a literal unsigned integer value at the given
167// word offset within an instruction.

Callers 3

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected