Module rspirv::binary[][src]

Expand description

Module for SPIR-V binary processing.

This module provides a Decoder and a Parser:

  • The decoder is a low-level binary processing tool; it has no knowlege of the SPIR-V grammar. It only serves SPIR-V word requests.
  • The parser is a high-level binary processing tool; it has knowledge of the SPIR-V grammar. It works with the Consumer to process a SPIR-V binary on the instruction level.

Structs

The SPIR-V binary decoder.

The SPIR-V binary parser.

Enums

Decoder Error

Orders consumer sent to the parser after each consuming call.

Parser State.

Traits

Trait for assembling functionalities.

The binary consumer trait.

Trait for disassembling functionalities.

Functions

Parses the given binary and consumes the module using the given consumer.

Parses the given binary and consumes the module using the given consumer.

Type Definitions