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

WGPU using child windows #3093

Closed
wants to merge 13 commits into from
Closed

WGPU using child windows #3093

wants to merge 13 commits into from

Conversation

vyeevani
Copy link
Contributor

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.

…n order to not reinitialize everything but only the bits needed. Naming of variables and resources are wonky and not the greatest.
examples/wgpu.rs Outdated Show resolved Hide resolved
…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.
@vyeevani
Copy link
Contributor Author

Slightly more interesting example of how this could play out: https://github.com/vyeevani/dioxus_native_graphics

@vyeevani
Copy link
Contributor Author

Screen.Recording.2024-10-24.at.4.15.51.PM.mov

Copy link
Member

@jkelleyrtp jkelleyrtp left a 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 a wgpu feature on dioxus-examples so we don't end up compiling it?
  • cargo.lock needs to be resolved for merge conflicts.

examples/wgpu.rs Outdated Show resolved Hide resolved
examples/wgpu.rs Show resolved Hide resolved
examples/wgpu.rs Outdated Show resolved Hide resolved
packages/desktop/src/app.rs Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@jkelleyrtp jkelleyrtp mentioned this pull request Nov 20, 2024
@jkelleyrtp
Copy link
Member

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!

@jkelleyrtp jkelleyrtp closed this Nov 26, 2024
@vyeevani
Copy link
Contributor Author

Awesome! Sorry I hadn't been very active on this, got pulled into some other stuff. thank you for seeing it through :)

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.

3 participants