gecko-dev/third_party/rust/spirv_headers
Dzmitry Malyshau 27e5308381 Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug
This is another WebGPU API update, it picks up a lot of changes that were made recently:
  - new bind group layout
  - new render pipeline descriptor
  - new vertex formats
  - limits
  - compressed texture formats
  - index format
  - query sets
  - and more small ones!

It also brings in the updated `gfx/wgpu` to support these API changes.

Differential Revision: https://phabricator.services.mozilla.com/D107013
2021-03-04 21:25:46 +00:00
..
.cargo-checksum.json Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug 2021-03-04 21:25:46 +00:00
Cargo.toml Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug 2021-03-04 21:25:46 +00:00
README.md Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug 2021-03-04 21:25:46 +00:00
autogen_spirv.rs Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug 2021-03-04 21:25:46 +00:00
lib.rs Bug 1622846 - Update WebGPU API with wgpu r=jgilbert,webidl,smaug 2021-03-04 21:25:46 +00:00

README.md

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]
spirv_headers = "1.5"

Then add to your crate root:

extern crate spirv_headers;

Version

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.

Examples

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