4 releases (breaking)

0.4.0+sdk-1.4.341.0 Mar 13, 2026
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

#17 in Graphics APIs

Download history 216195/week @ 2026-02-18 359764/week @ 2026-02-25 319602/week @ 2026-03-04 353524/week @ 2026-03-11 316923/week @ 2026-03-18 340038/week @ 2026-03-25 323694/week @ 2026-04-01 361876/week @ 2026-04-08 350549/week @ 2026-04-15 398761/week @ 2026-04-22 400188/week @ 2026-04-29 425980/week @ 2026-05-06 491986/week @ 2026-05-13 509445/week @ 2026-05-20 530251/week @ 2026-05-27 633320/week @ 2026-06-03

2,242,401 downloads per month
Used in 3,113 crates (9 directly)

Apache-2.0

255KB
5.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.4.0"

Examples

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

Dependencies

~230KB