From dbd68ff1396bf498eb97f095810b78d2bddd0011 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 13 Apr 2026 04:40:19 +0200 Subject: refactor: gpu webgl fallback and batched command encoding Made-with: Cursor --- rust/crates/gpu/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rust/crates/gpu/Cargo.toml') diff --git a/rust/crates/gpu/Cargo.toml b/rust/crates/gpu/Cargo.toml index 4be1e8d6..4ee7571e 100644 --- a/rust/crates/gpu/Cargo.toml +++ b/rust/crates/gpu/Cargo.toml @@ -8,6 +8,10 @@ bytemuck = { version = "1.25.0", features = ["derive"] } thiserror = "2.0.18" wgpu = "29.0.1" +[target.'cfg(target_arch = "wasm32")'.dependencies] +wasm-bindgen = "0.2.116" +web-sys = { version = "0.3.93", features = ["Document", "Window", "HtmlCanvasElement", "OffscreenCanvasRenderingContext2d", "ImageData"] } + [features] default = [] -wasm = [] +wasm = ["wgpu/webgl"] -- cgit v1.3.1