rspirv/binary/
mod.rs

1//! Module for SPIR-V binary processing.
2//!
3//! This module provides a [`Decoder`](struct.Decoder.html) and a
4//! [`Parser`](struct.Parser.html):
5//!
6//! * The decoder is a low-level binary processing tool; it has no knowlege
7//!   of the SPIR-V grammar. It only serves SPIR-V word requests.
8//! * The parser is a high-level binary processing tool; it has knowledge
9//!   of the SPIR-V grammar. It works with the
10//!   [`Consumer`](trait.Consumer.html) to process a SPIR-V binary on the
11//!   instruction level.
12
13pub use self::autogen_error::Error as DecodeError;
14pub use self::decoder::Decoder;
15pub use self::parser::Action as ParseAction;
16pub use self::parser::Result as ParseResult;
17pub use self::parser::State as ParseState;
18pub use self::parser::{parse_bytes, parse_words, Consumer, Parser};
19
20pub use self::assemble::Assemble;
21pub use self::disassemble::Disassemble;
22
23mod assemble;
24mod autogen_error;
25mod decoder;
26mod disassemble;
27mod parser;
28mod tracker;