2 unstable releases
|0.2.0+1.5.4||Aug 16, 2021|
|0.1.0+1.5.4||Aug 16, 2021|
#129 in Graphics APIs
103,348 downloads per month
Used in 693 crates (3 directly)
spirv-headers of the rspirv project
The headers crate for the rspirv project which provides Rust definitions of SPIR-V structs, enums, and constants.
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
[dependencies] spirv = "0.2.0+1.5.4"
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
Please see the documentation and project's README for examples.