Skip to content

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

Open
@Doublonmousse

Description

@Doublonmousse

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions