deno/ext/webgpu
Nathan Whitaker 9379a74e08
Some checks are pending
ci / publish canary (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build libs (push) Blocked by required conditions
chore: update to edition 2024 (#29923)
2025-07-02 17:59:39 -07:00
..
00_init.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
01_webgpu.js feat(unstable/webgpu): add deviceStartCapture and deviceStopCapture (#28192) 2025-04-16 17:26:28 +00:00
02_surface.js fix: move extension file declarations to cli/tsc/dts (#28180) 2025-02-19 02:53:21 +01:00
adapter.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
bind_group.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
bind_group_layout.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
buffer.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
byow.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
Cargo.toml 2.4.0 (#29959) 2025-07-01 16:21:05 -04:00
command_buffer.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
command_encoder.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
compute_pass.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
compute_pipeline.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
device.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
error.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
lib.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
LICENSE.md refactor: add deno_config crate back to cli (#29740) 2025-06-13 17:01:26 +00:00
pipeline_layout.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
query_set.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
queue.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
README.md chore: update wgpu (#23684) 2024-05-05 07:22:18 -07:00
render_bundle.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
render_pass.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
render_pipeline.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
sampler.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
shader.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
surface.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
texture.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00
webgpu.idl refactor: object wrap WebGPU (#27665) 2025-02-12 13:45:41 +00:00
webidl.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00

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 March 31, 2024. The spec is still very much in flux. This extension 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