-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
WGPU using child windows #3093
WGPU using child windows #3093
Conversation
…n order to not reinitialize everything but only the bits needed. Naming of variables and resources are wonky and not the greatest.
…ks. the abstractions in place should be passed the bounds rect down into the desktopservice to resize as opposed to in the app impl instead of how they are rn.
Slightly more interesting example of how this could play out: https://github.com/vyeevani/dioxus_native_graphics |
Screen.Recording.2024-10-24.at.4.15.51.PM.mov |
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.
Thanks for the PR!
A few things:
- this wgpu version is out of date (0.9 vs 0.12)
- Are we sure we need the resizing code?
- I think we don't need the lifetimes in the wgpu code (or add a 'static lifetime)
- Can we gate
wgpu
behind awgpu
feature on dioxus-examples so we don't end up compiling it? - cargo.lock needs to be resolved for merge conflicts.
I struggled to get merge conflicts fixed for this PR since the github CLI was checking out the wrong branch. I ended up fixing things in #3257 and adding you as a co-author so you get commit credits :) Thanks for the PR! |
Awesome! Sorry I hadn't been very active on this, got pulled into some other stuff. thank you for seeing it through :) |
This is a minor change from the code perspective to allow child windows to be created and some fixes for using the transparency feature. However, the implications of this are pretty staggering as they allow for the use of other rendering toolboxes.
Tested on macOS.