[gles] Allow creating a texture from an external glow::NativeFramebuffer
and writing to it
#7581
Labels
area: api
Issues related to API surface
backend: gles
Issues with GLES or WebGL
type: enhancement
New feature or request
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
theglow::NativeFrameBuffer
.Describe the solution you'd like
Make it possible to add an
ExternalGlFrameBuffer
to theTextureInner
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)
The text was updated successfully, but these errors were encountered: