From c87326800446bc1652d57fc1b12ced2bf83887a5 Mon Sep 17 00:00:00 2001 From: Elabajaba Date: Sat, 29 Jul 2023 21:47:10 -0400 Subject: [PATCH] make wasm work for now --- crates/bevy_render/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/bevy_render/Cargo.toml b/crates/bevy_render/Cargo.toml index 411eb42924c47..efe623dfe6930 100644 --- a/crates/bevy_render/Cargo.toml +++ b/crates/bevy_render/Cargo.toml @@ -57,7 +57,9 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" } image = { version = "0.24", default-features = false } # misc -wgpu = { version = "0.17.0", features=["naga"] } +# `fragile-send-sync-non-atomic-wasm` feature means we can't use WASM threads for rendering +# It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm +wgpu = { version = "0.17.0", features=["naga", "fragile-send-sync-non-atomic-wasm"] } codespan-reporting = "0.11.0" naga = { version = "0.13.0", features = ["wgsl-in"] } serde = { version = "1", features = ["derive"] }