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

Add OpenGL MSAA support to 2d rendering pipeline #84688

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BastiaanOlij
Copy link
Contributor

This PR adds MSAA support to the 2D rendering pipeline. This is a work in progress and not yet functional.

Todos:

  • Blit 3D result into 2D MSAA buffers is required,
  • Resolve 2D MSAA if required,
  • Look into MSAA support on the backbuffer.

If available (OpenGLES only atm) this PR will use the GL_EXT_multisampled_render_to_texture extension resulting in automatic resolve and MSAA data remaining purely in tile memory. This should provide a marked performance improvement.

Due to the design of the renderer, if MSAA is both used for 2D and 3D, there isn't an ability to share buffers and we incur an overhead if blitting of MSAA buffers is required. If scaling is used this is also unavoidable.
Note that if the aforementioned extension is used, this is not an issue.

This is a follow up from #83976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants