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

Function MakeLiteralStringOperand

test/binary_parse_test.cpp:175–178  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

173// Returns a parsed operand for a literal string value at the given
174// word offset within an instruction.
175spv_parsed_operand_t MakeLiteralStringOperand(uint16_t offset,
176 uint16_t length) {
177 return {offset, length, SPV_OPERAND_TYPE_LITERAL_STRING, SPV_NUMBER_NONE, 0};
178}
179
180// Returns a ParsedInstruction for an OpTypeVoid instruction that would
181// generate the given result Id.

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected