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

Function MakeFirstWord

test/handle_unknown_opcodes_test.cpp:46–48  ·  view source on GitHub ↗

Returns the packed first word of a SPIR-V instruction.

Source from the content-addressed store, hash-verified

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

Callers 1

TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected