#spirv #struct #enum #definition

spirv_headers

Rust definition of SPIR-V structs and enums

12 stable releases

✓ Uses Rust 2018 edition

1.4.1 Oct 25, 2019
1.3.4 Sep 17, 2018
1.3.1 Apr 20, 2018
1.2.2 Oct 12, 2017
1.1.5 Feb 18, 2017

#3 in #struct

Download history 255/week @ 2019-07-12 358/week @ 2019-07-19 229/week @ 2019-07-26 226/week @ 2019-08-02 260/week @ 2019-08-09 246/week @ 2019-08-16 294/week @ 2019-08-23 420/week @ 2019-08-30 260/week @ 2019-09-06 311/week @ 2019-09-13 448/week @ 2019-09-20 272/week @ 2019-09-27 311/week @ 2019-10-04 262/week @ 2019-10-11 433/week @ 2019-10-18

1,331 downloads per month
Used in 15 crates (4 directly)

Apache-2.0

125KB
3K 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]
rspirv_headers = "1.4"

Then add to your crate root:

extern crate spirv_headers;

Examples

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

Dependencies

~1.5MB
~34K SLoC