Skip to content
Discussion options

You must be logged in to vote

Now, I’m looking to do the reverse: render a Dioxus UI into a texture that can be displayed in a Bevy app. What would be the best approach to achieve this?

@jerome-caucat I've put up a draft pull request (#4365) that sketches out how to do this. It doesn't attempt actual Bevy integration. Some notes:

  • I am assuming that you would let Bevy setup WGPU and then use the Device and Queue from Bevy in this scenario (so you wouldn't need the WGPUContext). I am also assuming that you would do texture management.
  • You would probably store the DioxusDocument and VelloRenderer in the ECS somewhere.
  • You would need to integrate with Bevy's event loop and input
  • I think Blitz defaults to a white backgr…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jerome-caucat
Comment options

Answer selected by jerome-caucat
Comment options

You must be logged in to vote
1 reply
@jerome-caucat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants