Returns the packed first word of a SPIR-V instruction.
| 44 | |
| 45 | // Returns the packed first word of a SPIR-V instruction. |
| 46 | uint32_t MakeFirstWord(uint32_t word_count, uint32_t opcode) { |
| 47 | return (word_count << 16) | (opcode & 0xFFFFu); |
| 48 | } |
| 49 | |
| 50 | class HandleUnknownOpcodesTest : public ::testing::Test { |
| 51 | protected: |