Repository navigation
Access the egui_wgpu::RenderState after the app creation
#7481
Unanswered
brunnerant
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I am using eframe with the wgpu backend for custom rendering + UI on top of it. I have seen the example with the triangle and read the source code.
In the example, you create all the wgpu-related resources from the creation context, at the application startup. But is there a way to defer the creation of the resources to a later point in time ? I.e. since I plane to have several scenes, I want to only load the relevant one at any given point in time. In order for that to work, I would need to access the
egui_wgpu::RenderStateafter the app creation, at the time where the scene is changing, for example. But I didn't find a way to do that reading the API. Do you know if that's possible ?I hope my question is clear, and thank you for the great library!!
All reactions