Expand description
Parsing and analysis utilities for SPIR-V shader binaries.
This can be used to inspect and validate a SPIR-V module at runtime. The Spirv
type does some
validation, but you should not assume that code that is read successfully is valid.
For more information about SPIR-V modules, instructions and types, see the SPIR-V specification.
Structs
- Information associated with a function.
- Used in SPIR-V to refer to the result of another instruction.
- Information associated with an
Id
. - Error that can happen when parsing SPIR-V instructions into Rust data structures.
- A parsed and analyzed SPIR-V module.
- Information associated with a member of a
TypeStruct
instruction.
Enums
- A parsed SPIR-V instruction.
- Individual types of parse error that can happen.
- An instruction that is used as the operand of the
SpecConstantOp
instruction. - Error that can happen when reading a SPIR-V module.
Functions
- Converts SPIR-V bytes to words. If necessary, the byte order is swapped from little-endian to native-endian.