#spirv #struct #enum #definition

spirv_headers

Rust definition of SPIR-V structs and enums

11 stable releases

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

#7 in Rendering engine

Download history 4/week @ 2019-01-17 15/week @ 2019-01-24 6/week @ 2019-01-31 7/week @ 2019-02-07 6/week @ 2019-02-14 16/week @ 2019-02-21 42/week @ 2019-02-28 58/week @ 2019-03-07 32/week @ 2019-03-14 69/week @ 2019-03-21 49/week @ 2019-03-28 13/week @ 2019-04-04 56/week @ 2019-04-11 19/week @ 2019-04-18 83/week @ 2019-04-25

204 downloads per month
Used in 7 crates (3 directly)

Apache-2.0

40KB
1.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]
rspirv_headers = "1.3"

Then add to your crate root:

extern crate spirv_headers;

Examples

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

Dependencies

~1.5MB
~31K SLoC