3 releases (breaking)

0.3.0+sdk-1.3.268.0 Dec 20, 2023
0.2.0+1.5.4 Aug 16, 2021
0.1.0+1.5.4 Aug 16, 2021
0.1.0 Oct 29, 2015

#15 in Graphics APIs

Download history 26622/week @ 2023-12-24 36027/week @ 2023-12-31 39362/week @ 2024-01-07 46044/week @ 2024-01-14 49666/week @ 2024-01-21 47140/week @ 2024-01-28 51730/week @ 2024-02-04 49276/week @ 2024-02-11 59219/week @ 2024-02-18 55260/week @ 2024-02-25 52116/week @ 2024-03-03 50199/week @ 2024-03-10 51143/week @ 2024-03-17 59970/week @ 2024-03-24 55564/week @ 2024-03-31 32848/week @ 2024-04-07

204,245 downloads per month
Used in 1,267 crates (7 directly)

Apache-2.0

190KB
4K 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.3.0"

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

~98–300KB