113 breaking releases

new 0.116.0 May 1, 2024
0.114.0 Apr 16, 2024
0.110.0 Mar 28, 2024
0.96.0 Dec 21, 2023
0.3.0 Mar 21, 2021

#209 in Graphics APIs

Download history 252/week @ 2024-01-10 166/week @ 2024-01-17 332/week @ 2024-01-24 447/week @ 2024-01-31 239/week @ 2024-02-07 494/week @ 2024-02-14 876/week @ 2024-02-21 986/week @ 2024-02-28 688/week @ 2024-03-06 591/week @ 2024-03-13 260/week @ 2024-03-20 713/week @ 2024-03-27 395/week @ 2024-04-03 918/week @ 2024-04-10 298/week @ 2024-04-17 334/week @ 2024-04-24

2,124 downloads per month
Used in 19 crates (8 directly)

MIT license

1MB
25K SLoC

Rust 19K SLoC // 0.0% comments JavaScript 6K SLoC // 0.1% comments GLSL 11 SLoC

deno_webgpu

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 October 4, 2023. 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

Dependencies

~0–46MB
~739K SLoC