MSAAStrategy
Multi-sample anti-aliasing.
| Inherits | construct::aa::IAntialiasStrategy |
In the namespace construct::aa. Declared in src/libs/libconstruct/construct/aa/MSAAStrategy.hpp.
Detailed description
Sets FrameSetup::sampleCount to N. RhiContext::ensureOffscreen allocates a multisample color texture as the renderable and binds the existing single-sample offscreen texture as the resolve target — Vulkan resolves MSAA→single-sample at end-of-pass, downstream sampling paths see the same texture as before.
Note: MSAA cannot antialias SDF silhouettes (the SDF renders as a full-screen quad covering every pixel; the silhouette is per-pixel inside the fragment shader, where MSAA never reaches). For mesh geometry, MSAA works as expected.