Skip to content

Commit 83a3003

Browse files
committed
make wasm work for now
1 parent 8276307 commit 83a3003

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_render/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" }
5757
image = { version = "0.24", default-features = false }
5858

5959
# misc
60-
wgpu = { version = "0.17.0", features=["naga"] }
60+
# `fragile-send-sync-non-atomic-wasm` feature means we can't use WASM threads for rendering
61+
# It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm
62+
wgpu = { version = "0.17.0", features=["naga", "fragile-send-sync-non-atomic-wasm"] }
6163
codespan-reporting = "0.11.0"
6264
naga = { version = "0.13.0", features = ["wgsl-in"] }
6365
serde = { version = "1", features = ["derive"] }

0 commit comments

Comments
 (0)