Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 30-Mar-2022 | - | ||||
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
Cargo.toml | H A D | 30-Mar-2022 | 1.1 KiB | 42 | 36 | |
README.md | H A D | 30-Mar-2022 | 1.4 KiB | 45 | 33 | |
autogen_spirv.rs | H A D | 30-Mar-2022 | 176.5 KiB | 4,335 | 4,330 | |
lib.rs | H A D | 30-Mar-2022 | 325 | 15 | 5 | |
release.toml | H A D | 30-Mar-2022 | 512 | 14 | 10 |
README.md
1spirv-headers of the rspirv project 2=================================== 3 4[![Crate][img-crate-headers]][crate-headers] 5[![Documentation][img-doc-headers]][doc-headers] 6 7The headers crate for the rspirv project which provides Rust definitions of 8SPIR-V structs, enums, and constants. 9 10Usage 11----- 12 13This project uses associated constants, which became available in the stable channel 14since [1.20][rust-1.20]. So to compile with a compiler from the stable channel, 15please make sure that the version is >= 1.20. 16 17First add to your `Cargo.toml`: 18 19```toml 20[dependencies] 21spirv = "0.2.0+1.5.4" 22``` 23 24Version 25------- 26 27Note that the major and minor version of this create is tracking the SPIR-V spec, 28while the patch number is used for bugfixes for the crate itself. So version 29`1.4.2` is tracking SPIR-V 1.4 but not necessarily revision 2. Major client APIs 30like Vulkan/OpenCL pin to a specific major and minor version, regardless of the 31revision. 32 33Examples 34-------- 35 36Please see the [documentation][doc-headers] and project's 37[README][project-readme] for examples. 38 39[img-crate-headers]: https://img.shields.io/crates/v/spirv.svg 40[img-doc-headers]: https://docs.rs/spirv/badge.svg 41[crate-headers]: https://crates.io/crates/spirv 42[doc-headers]: https://docs.rs/spirv 43[project-readme]: https://github.com/gfx-rs/rspirv/blob/master/README.md 44[rust-1.20]: https://blog.rust-lang.org/2017/08/31/Rust-1.20.html 45