Graphics formats

SPIR-V instruction builder

Pack an opcode and raw operand words into a little-endian instruction.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

The first word is wordCount × 65536 + opcode; wordCount includes that first word. Serialize all words little-endian.

OpNop opcode 0 with no operands has word 00010000 hex, stored as 00 00 01 00.

Limits

Raw word assembly only; the opcode, operand types, IDs and instruction position are not semantically validated. At most 10000 operands.