deno/ext/webgpu
Leo Kettmeir 59f77c909e
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
refactor(webgpu): make cppgc arguments safer (#30563)
Also updates `deno_core`.

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-09-03 18:01:58 +02: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 fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
bind_group.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
bind_group_layout.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
buffer.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
byow.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
Cargo.toml 2.4.5 (#30476) 2025-08-21 13:41:58 +02:00
command_buffer.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
command_encoder.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
compute_pass.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
compute_pipeline.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
device.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
error.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
lib.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
LICENSE.md refactor: add deno_config crate back to cli (#29740) 2025-06-13 17:01:26 +00:00
pipeline_layout.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
query_set.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
queue.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
README.md chore: update wgpu (#23684) 2024-05-05 07:22:18 -07:00
render_bundle.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
render_pass.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
render_pipeline.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
sampler.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
shader.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
surface.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02:00
texture.rs fix(ext/webgpu): add illegal constructor errors (#30500) 2025-09-01 12:33:25 +02:00
webgpu.idl refactor: object wrap WebGPU (#27665) 2025-02-12 13:45:41 +00:00
webidl.rs refactor(webgpu): make cppgc arguments safer (#30563) 2025-09-03 18:01:58 +02: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