-
Notifications
You must be signed in to change notification settings - Fork 378
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 to latest wgpu and egui/eframe #7218
Conversation
FYI I just landed emilk/egui#4964 |
d6aa3ab
to
b530459
Compare
5b40076
to
489ab26
Compare
height: 1080, | ||
}); | ||
|
||
// TODO(emilk): port this to the winit 0.30 API, using maybe https://docs.rs/winit/latest/winit/platform/web/trait.EventLoopExtWebSys.html ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave up porting the wasm32 portion of the examples to latest winit
@@ -195,7 +195,7 @@ export class WebViewer { | |||
|
|||
this.#handle = new WebHandle_class({ ...options, fullscreen }); | |||
try { | |||
await this.#handle.start(this.#canvas.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also remove all the this.#id
shenanigans here, seeing as it's no longer used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Web stuff LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
// winit 0.30.5 spams about `set_cursor_visible` calls. It's gone on winit master, so hopefully gone in next winit release. | ||
"winit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a TODO
/issue to track that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really have a system in place for tracking new releases… this is a very minor thing anyways (we rarely care about debug logs from winit)
let table_builder = egui_extras::TableBuilder::new(ui) | ||
.id_source(chunk_store.id()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
niiice
What
master
branchThis changes the interface between HTML/JS and WASM from passing a canvas id, to passing the canvas element directly (emilk/egui#4780). This means the preview of this PR is broken, and merging this PR will likely break it for all subsequent PRs. @jprochazk do you have a good idea how we can fix this?TODO
re_renderer
example needs a winit updateChecklist
pixi run rerun-web
main
build: rerun.io/viewernightly
build: rerun.io/viewerCHANGELOG.md
and the migration guideTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.