2 unstable releases

0.2.0+1.5.4 Aug 16, 2021
0.1.0+1.5.4 Aug 16, 2021
0.1.0 Oct 29, 2015

#129 in Graphics APIs

Download history 19400/week @ 2022-11-29 21004/week @ 2022-12-06 17732/week @ 2022-12-13 18359/week @ 2022-12-20 14507/week @ 2022-12-27 19978/week @ 2023-01-03 21165/week @ 2023-01-10 21249/week @ 2023-01-17 23034/week @ 2023-01-24 25633/week @ 2023-01-31 26721/week @ 2023-02-07 28199/week @ 2023-02-14 25982/week @ 2023-02-21 25171/week @ 2023-02-28 26777/week @ 2023-03-07 21062/week @ 2023-03-14

103,348 downloads per month
Used in 693 crates (3 directly)

Apache-2.0

185KB
4.5K SLoC

spirv-headers of the rspirv project

Crate Documentation

The headers crate for the rspirv project which provides Rust definitions of SPIR-V structs, enums, and constants.

Usage

This project uses associated constants, which became available in the stable channel since 1.20. So to compile with a compiler from the stable channel, please make sure that the version is >= 1.20.

First add to your Cargo.toml:

[dependencies]
spirv = "0.2.0+1.5.4"

Version

Note that the major and minor version of this create is tracking the SPIR-V spec, while the patch number is used for bugfixes for the crate itself. So version 1.4.2 is tracking SPIR-V 1.4 but not necessarily revision 2. Major client APIs like Vulkan/OpenCL pin to a specific major and minor version, regardless of the revision.

Examples

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

Dependencies

~125–425KB