Crates.io | spirv |
lib.rs | spirv |
version | 0.3.0+sdk-1.3.268.0 |
source | src |
created_at | 2015-10-29 08:59:29.549651 |
updated_at | 2023-12-20 09:17:18.185726 |
description | Rust definition of SPIR-V structs and enums |
homepage | |
repository | https://github.com/gfx-rs/rspirv |
max_upload_size | |
id | 3326 |
size | 187,312 |
The headers crate for the rspirv project which provides Rust definitions of SPIR-V structs, enums, and constants.
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"
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.
Please see the documentation and project's README for examples.