Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update egui to get wgpu on web #161

Merged
merged 4 commits into from
Oct 6, 2022
Merged

Conversation

emilk
Copy link
Member

@emilk emilk commented Oct 6, 2022

We can now run the Rerun viewer on wgpu on the web, thanks to @Wumpf's work in emilk/egui#2107

You need to run cargo install wasm-bindgen-cli --version 0.2.83 after merging this (or scripts/setup_web.sh)

Try it with

index 49145c0..7ec5306 100644
--- a/crates/re_viewer/Cargo.toml
+++ b/crates/re_viewer/Cargo.toml
@@ -12,7 +12,7 @@ crate-type = ["cdylib", "rlib"]
 
 
 [features]
-default = ["puffin", "glow"]
+default = ["puffin", "wgpu"]
 
 ## Add support for the [`puffin`](https://github.com/EmbarkStudios/puffin) profiler.
 puffin = ["dep:puffin", "dep:puffin_http", "eframe/puffin", "re_log_types/puffin"]

and then

cargo r --features web -- ../data.rrd --web-viewer

@emilk emilk marked this pull request as ready for review October 6, 2022 10:11
@emilk emilk requested a review from Wumpf October 6, 2022 10:12
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@Wumpf Wumpf merged commit b1e0460 into main Oct 6, 2022
@Wumpf Wumpf deleted the update-egui-and-get-wgpu-on-web branch October 6, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants