17 releases (9 breaking)

0.11.0+1.5.4 Oct 29, 2021
0.9.0+1.5.4 Aug 16, 2021
0.8.0 May 5, 2021
0.7.0 Aug 22, 2020
0.1.0 Nov 8, 2016

#419 in Graphics APIs

Download history 2849/week @ 2022-10-15 3376/week @ 2022-10-22 3285/week @ 2022-10-29 3287/week @ 2022-11-05 2884/week @ 2022-11-12 4204/week @ 2022-11-19 3831/week @ 2022-11-26 3090/week @ 2022-12-03 3588/week @ 2022-12-10 2011/week @ 2022-12-17 975/week @ 2022-12-24 1575/week @ 2022-12-31 2113/week @ 2023-01-07 2887/week @ 2023-01-14 2110/week @ 2023-01-21 3460/week @ 2023-01-28

10,629 downloads per month
Used in 11 crates (10 directly)

Apache-2.0

2MB
47K SLoC

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 data representation of SPIR-V modules and its loader and builder
  • A structured representation of SPIR-V modules (under developing)
  • SPIR-V binary module decoding and parsing functionalities
  • A lifting infrastructure for converting data representation into structured representation.

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

The data representation, as the name shows, focuses on presenting the data within a SPIR-V module; a higher level structured representation is currently under developing.

Usage

First add to your Cargo.toml:

[dependencies]
rspirv = "0.11.0+1.5.4"

Examples

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

Dependencies