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

egui-wgpu: Add a wgpu texture #1662

Closed
parasyte opened this issue May 22, 2022 · 1 comment
Closed

egui-wgpu: Add a wgpu texture #1662

parasyte opened this issue May 22, 2022 · 1 comment
Labels
feature New feature or request

Comments

@parasyte
Copy link
Contributor

Is your feature request related to a problem? Please describe.

egui-wgpu has a method to upload raw image pixels and create an egui texture. It is missing a method to allocate an egui texture from a wgpu texture. This was available in egui_wgpu_backend: https://docs.rs/egui_wgpu_backend/0.17.0/egui_wgpu_backend/struct.RenderPass.html#method.egui_texture_from_wgpu_texture

Describe the solution you'd like

Add a similar method to egui-wgpu so that any texture usable by wgpu can also be used directly in egui.

Describe alternatives you've considered

Additional context

This is an important feature for pixels, which provides access to the wgpu texture view. And generally important for any application that renders to a texture.

@emilk
Copy link
Owner

emilk commented May 22, 2022

closed in #1660

@emilk emilk closed this as completed May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants