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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

WGPU using child windows #3093

wants to merge 9 commits into from

Conversation

vyeevani
Copy link

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
Author

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

@vyeevani
Copy link
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
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