core of the rspirv project

Crate Documentation

The core crate of the rspirv project providing APIs for processing SPIR-V modules: * The whole SPIR-V grammar (instruction layouts and their operands) * A memory representation of SPIR-V modules and its loader and builder * SPIR-V binary module decoding and parsing functionalities

This crate defines a common SPIR-V memory representation (MR) as the medium for various purposes. It also provides a builder to build the MR iteractively and a parser to parse a given SPIR-V binary module into its MR. The parser handles decoding and parsing of SPIR-V binary modules according to the grammar, the parsed instructions are sent to the consumer.

Usage

First add to your Cargo.toml:

toml [dependencies] rspirv = "0.3"

Then add to your crate root:

rust extern crate rspirv;

Examples

Please see the documentation and project's README for examples.