/usr/bin/spirv-dis - Disassemble a SPIR-V binary module Usage: /usr/bin/spirv-dis [options] [] The SPIR-V binary is read from . If no file is specified, or if the filename is "-", then the binary is read from standard input. A text-based hex stream is also accepted as binary input, which should either consist of 32-bit words or 8-bit bytes. The 0x or x prefix is optional, but should be consistently present in the stream. Options: -h, --help Print this help. --version Display disassembler version information. -o Set the output filename. Output goes to standard output if this option is not specified, or if the filename is "-". --color Force color output. The default when printing to a terminal. Overrides a previous --no-color option. --no-color Don't print in color. Overrides a previous --color option. The default when output goes to something other than a terminal (e.g. a file, a pipe, or a shell redirection). --no-indent Don't indent instructions. --no-header Don't output the header as leading comments. --raw-id Show raw Id values instead of friendly names. --nested-indent Indentation is adjusted to indicate nesting in structured control flow. --reorder-blocks Reorder blocks to match the structured control flow of SPIR-V. With this option, the order of instructions will no longer match the input binary, but the result will be more readable. --offsets Show byte offsets for each instruction. --comment Add comments to make reading easier --handle-unknown-opcodes Emit unknown opcodes and unknown extended instruction numbers as OpUnknown with raw integer operands instead of failing. The output can be re-assembled with spirv-as. Note: the ID bound in the reassembled module may be incorrect if any unknown instruction defines a result ID.