Skip to content

[gles] Allow creating a texture from an external glow::NativeFramebuffer and writing to it #7581

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

Open
Doublonmousse opened this issue Apr 20, 2025 · 0 comments · May be fixed by #7671
Open
Labels
area: api Issues related to API surface backend: gles Issues with GLES or WebGL type: enhancement New feature or request

Comments

@Doublonmousse
Copy link

Doublonmousse commented Apr 20, 2025

Is your feature request related to a problem? Please describe.
The gtk4's gl area needs us to bind to an external framebuffer to work.
See https://github.com/gtk-rs/gtk4-rs/blob/dcc7500d9b325f6047c6d74f08b0a768d0415ff2/examples/femtovg_area/femtovg_area/imp.rs#L147-L159

Hence for making it possible to display a wgpu gles image inside a gtk4 glarea, we need to provide to wgpu the glow::NativeFrameBuffer.

Describe the solution you'd like

Make it possible to add an ExternalGlFrameBuffer to the TextureInner structure so that this can be done.

Additional context
This is in substance very similar to #2609

I've succeeded in doing this here https://github.com/Doublonmousse/wgpu/tree/external-gles-framebuffer (I can open a PR if that's okay with everyone)

@cwfitzgerald cwfitzgerald added type: enhancement New feature or request area: api Issues related to API surface backend: gles Issues with GLES or WebGL labels Apr 20, 2025
@Doublonmousse Doublonmousse changed the title [WebGL] Allow creating a texture from an external glow::NativeFramebuffer and writing to it [gles] Allow creating a texture from an external glow::NativeFramebuffer and writing to it May 5, 2025
@Doublonmousse Doublonmousse linked a pull request May 5, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issues related to API surface backend: gles Issues with GLES or WebGL type: enhancement New feature or request
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants