Skip to content

[Impeller] GLES backend needs method to "Store/Load" multisample stencil or depth buffer. #137561

@jonahwilliams

Description

@jonahwilliams

For Impeller on the OpenGLES backend, we're going to use https://registry.khronos.org/OpenGL/extensions/EXT/EXT_multisampled_render_to_texture.txt . While this extension automagically resolves the 4x multisample texture to a 1x resolve texture, I don't believe it similarly makes the stencil attachment availble. Instead, it likely discards the stencil and depth buffer.

This should be visible by running an application with a backdrop filter - we depend on storing the stencil buffer for correct rendering.

In order to "store" the stencil buffer, we may need to manually blit or draw the stencil into another texture. I don't have a good handle on whether or not this is easily possible. If not, then we'll need to implement #137448 which removes the need to store the stencil altogether (better long term but will be a heavy lift).

@matanlurey

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions