Returns a parsed operand for a literal string value at the given word offset within an instruction.
| 173 | // Returns a parsed operand for a literal string value at the given |
| 174 | // word offset within an instruction. |
| 175 | spv_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. |