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 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 theend_render_pass
, render buffer will be blit into aresolve
texture.A new example, examples/msaa_render_texture.rs, illustrates the idea.