• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..30-Mar-2022-

.cargo-checksum.jsonH A D03-May-202289 11

Cargo.tomlH A D30-Mar-20221.1 KiB4236

README.mdH A D30-Mar-20221.4 KiB4533

autogen_spirv.rsH A D30-Mar-2022176.5 KiB4,3354,330

lib.rsH A D30-Mar-2022325 155

release.tomlH A D30-Mar-2022512 1410

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