You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a wgpu::Texture . I want to draw it in a egui::Image . How do I do that ?
Background: I have my own wgpu code, which I am integrating with egui. I have eframe running with features "wgpu". This allows me to do
CreationContext -> WgpuRenderState
via https://docs.rs/eframe/latest/eframe/struct.CreationContext.html#structfield.wgpu_render_stateUsing the wgpu_render_state, I can initialize my own wgpu code. Then I do some drawing in wgpu land, and I render to a https://docs.rs/wgpu/latest/wgpu/struct.Texture.html
Now, I need to take this Texture and render it someone in egui.
The obvious thing to try is https://docs.rs/egui/latest/egui/enum.TextureId.html . In particular,
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions