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

#18 in Graphics APIs

Download history 213349/week @ 2026-01-19 205485/week @ 2026-01-26 311149/week @ 2026-02-02 241688/week @ 2026-02-09 211905/week @ 2026-02-16 242797/week @ 2026-02-23 403891/week @ 2026-03-02 347604/week @ 2026-03-09 317062/week @ 2026-03-16 335338/week @ 2026-03-23 337415/week @ 2026-03-30 336565/week @ 2026-04-06 370325/week @ 2026-04-13 362682/week @ 2026-04-20 417771/week @ 2026-04-27 389607/week @ 2026-05-04

1,571,532 downloads per month
Used in 2,938 crates (8 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

~235KB