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

graphics: Implement MSAA render textures #478

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

not-fl3
Copy link
Owner

@not-fl3 not-fl3 commented Aug 26, 2024

Gleaned the idea from sokol:

With sample_count > 1, render buffer object will be created instead of a regulat texture, allowing us to have anti-aliased render targets on GLES3.
For those textures, at the end_render_pass, render buffer will be blit into a resolve texture.

A new example, examples/msaa_render_texture.rs, illustrates the idea.

Gleaned implementation idea directly from sokol. For now only for OpenGL.
@not-fl3 not-fl3 merged commit 31aa5f6 into master Aug 26, 2024
14 of 20 checks passed
@not-fl3 not-fl3 deleted the msaa_render_texture branch August 26, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant