Skip to content

Commit

Permalink
update wgpu and wasm-bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 18, 2024
1 parent 84f351d commit ce84ec1
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 51 deletions.
87 changes: 41 additions & 46 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ glow = "0.13"
puffin = "0.18"
raw-window-handle = "0.5.0"
thiserror = "1.0.37"

# TODO: Use a stable version of wgpu.
wgpu = { git = "https://github.com/gfx-rs/wgpu", commit = "7774f31", features = [
wgpu = { version = "0.19", features = [
# Make the renderer `Sync` even on wasm32, because it makes the code simpler:
"fragile-send-sync-non-atomic-wasm",
] }
1 change: 1 addition & 0 deletions crates/egui-wgpu/src/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ impl Painter {
present_mode,
alpha_mode: surface_state.alpha_mode,
view_formats: vec![render_state.target_format],
desired_maximum_frame_latency: 2, // TODO(emilk): expose to users
},
);
}
Expand Down
2 changes: 1 addition & 1 deletion crates/egui_demo_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ rfd = { version = "0.11", optional = true }

# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "=0.2.89"
wasm-bindgen = "=0.2.90"
wasm-bindgen-futures = "0.4"
web-sys = "0.3"
2 changes: 1 addition & 1 deletion scripts/setup_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ cd "$script_path/.."
rustup target add wasm32-unknown-unknown

# For generating JS bindings:
cargo install --quiet wasm-bindgen-cli --version 0.2.89
cargo install --quiet wasm-bindgen-cli --version 0.2.90

0 comments on commit ce84ec1

Please sign in to comment.