dawn-sys provides unsafe Rust bindings for Dawn, the open-source and cross-platform implementation of the WebGPU standard that powers Google Chrome, Microsoft Edge, and other Chromium-based browsers. It also provides Pre-built Dawn binaries (webgpu_dawn.dll), kindly provided by Mārtiņš Možeiko's build-dawn automation on GitHub Actions that rebuilds the Dawn binaries once per week. This crate contains a build script that handles chores like copying necessary binaries to the output directory, making everything ready out of the box.
This crate is licensed under the BSD-3-Clause license, aligning to Dawn and WebGPU-Headers.
NOTE: This crate does not provide rustdoc for its public APIs. Check https://webgpu-native.github.io/webgpu-headers/index.html for documentation.
NOTE: This crate currently only provides pre-built binaries for x64 Windows, and it contains only the Direct3D 12 Backend. This is a limitation of
build-dawn. Requesting an adapter of unavailable backends will fail. We plan to set up a custom GitHub Action to provide more backend options on prebuilt binaries in the near future. Furthermore, given the cross-platform capabilities of Dawn, it is planned to eventually support macOS, Linux and web in the long term, but it is not currently a key focus of the maintainer of this crate. and we plan to set up a custom GitHub Action to provide more options on prebuilt binaries in the near future. If you'd like to help, you are welcome to open an issue for further discussion.