SSAAStrategy

Supersampling anti-aliasing.

In the namespace construct::aa. Declared in src/libs/libconstruct/construct/aa/SSAAStrategy.hpp.

Detailed description

Sets FrameSetup::renderScale > 1.0 so the offscreen RT is allocated larger than the output. The pipeline renders the scene at the oversize resolution; the implicit downsample at final blit (texture sampler linear filtering) does the resolve.

Unlike MSAA, SSAA WORKS for SDF silhouettes — the SDF fragment shader runs once per offscreen pixel, so 2× supersampling yields 4 shader evaluations per output pixel at distinct sub-pixel positions, then averages them. The cost is exactly that: 4× the shader workload at renderScale=2.

In this section