-
Notifications
You must be signed in to change notification settings - Fork 62
Misc fixes #8
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
Misc fixes #8
Conversation
Thanks for this, I'll aim to take a closer look at this. One thing I'm initially unsure about from skimming the changes is the introduction of the wgpu 0.13 dependency and updating the egui dependency. There has been a bit of a balancing act with versions recently since the I had so far only brought dependencies for Just checking quickly it looks support has been merged into wgpu master but it sounds like this dependency bump won't now be released until around late September: gfx-rs/wgpu#2918 (comment). The lack of new wgpu release will in turn affect what egui version we need to continue depending on. I guess we'll probably needing to stick with a git commits until wgpu 0.14 and egui 0.19/0.20 are released. |
For reference this is the PR for egui to bump the winit dependency to 0.27 which is not currently merged and is either blocked on wgpu 0.14 being released or else finding some way for egui to be able to work with winit 0.26 and 0.27 For now it looks like that implies we have to stick with a git commit for the ndk crate before it was bumped to raw_window_handle 0.5 - otherwise we also have to jump to winit 0.27 which isn't supported by egui yet. That said I think we should still be able to bump the wgpu dependency to 0.13 as in this PR, since that still only depends on winit 0.26. |
The One thing that could be improved is to change your |
Yeah, there's a bit of a tangle at the moment with versions, esp relating to winit and wgpu. Here's an issue + PR I worked on today to try any improve this situation, which will hopefully help here too: rust-windowing/winit#2418 The branch I have for winit is also wrapped up in this issue, since that's currently also blocked from moving beyond the raw_window_handle change - considering that egui is currently stuck using winit 0.26 until wgpu becomes compatible with winit 0.27. btw, I have an updated version of the winit branch that's been rebased but it looks like I didn't push it yet - I need to check if there was still something I need to address with the rebase - I'll give that a look now (I might have just left it to wait and see about these winit versioning issues since probably wasn't sure how quickly the issue with wgpu might be resolved) Yeah, you're right that egui needs to be pinned in this repo. I currently just have it locked locally and forgot to pin. I think because it's in a workspace you get forced to move patches up into the workspace Cargo.toml which also makes the pinning less obvious than it ideally would be, so it may also make sense to add some README notes about all this. |
I would probably prefer |
My hope at the moment is that we can land rust-windowing/winit#2418 in Winit asap and then if a 0.27.2 release gets spun then I think we can just move ahead to Winit 0.27 and not be blocked by the raw_window_handle upgrade. |
Okey, even though it spawned all these other comments about the current versioning tangle we have, this PR in itself wasn't really interacting with any of that. I'll hopefully follow up based on some of the discussion, but that can be done separately. Thanks for the PR! |
For reference here, I've now update android-activity to use My Winit branch also includes my patch from rust-windowing/winit#2418 which makes it compatible with wgpu 0.13 and the agdk-winit-wgpu example has been updated to use wgpu 0.13. While egui hasn't yet merged it's support for Winit 0.27 into master then agdk-egui currently points at the branch for the PR that adds Winit 0.27 support. I've smoke tested that |
Just various fixes which enables
agdk-egui
to build for me. It does not work in the Android Emulator however.