13 releases (breaking)

new 0.10.0 Jun 15, 2021
0.8.1 May 31, 2021
0.3.0 Mar 21, 2021
Download history 130/week @ 2021-02-26 220/week @ 2021-03-05 370/week @ 2021-03-12 236/week @ 2021-03-19 511/week @ 2021-03-26 296/week @ 2021-04-02 307/week @ 2021-04-09 316/week @ 2021-04-16 250/week @ 2021-04-23 172/week @ 2021-04-30 281/week @ 2021-05-07 300/week @ 2021-05-14 159/week @ 2021-05-21 289/week @ 2021-05-28 336/week @ 2021-06-04 236/week @ 2021-06-11

1,224 downloads per month
Used in 7 crates (2 directly)

MIT license

18K SLoC

Rust 11K SLoC // 0.0% comments JavaScript 6K SLoC // 0.1% comments TypeScript 1K SLoC // 0.0% comments


This op crate implements the WebGPU API as defined in https://gpuweb.github.io/gpuweb/ in Deno. The implementation targets the spec draft as of February 22, 2021. The spec is still very much in flux. This op crate tries to stay up to date with the spec, but is constrained by the features implemented in our GPU backend library wgpu.

The spec is still very bare bones, and is still missing many details. As the spec becomes more concrete, we will implement to follow the spec more closely.

In addition, setting the DENO_WEBGPU_TRACE environmental variable will output a wgpu trace to the specified directory.

For testing this op crate will make use of the WebGPU conformance tests suite, running through our WPT runner. This will be used to validate implementation conformance.

GitHub CI doesn't run with GPUs, so testing relies on software like DX WARP & Vulkan lavapipe. Currently only using DX WARP works, so tests are only run on Windows.


Specification: https://gpuweb.github.io/gpuweb/

Design documents: https://github.com/gpuweb/gpuweb/tree/main/design

Conformance tests suite: https://github.com/gpuweb/cts

WebGPU examples for Deno: https://github.com/crowlKats/webgpu-examples

wgpu-users matrix channel: https://matrix.to/#/#wgpu-users:matrix.org


~1.5M SLoC