pub enum Antialiasing {
None,
Fxaa,
Cmaa2,
}Expand description
Which tier fills the frame’s one antialiasing slot.
The antialiasing ladder’s eighth decision (docs/notes/rendering.md), taken 2026-08-30 with
Counter-Strike 2’s video panel in front of it: the slot holds one filter,
so the settings seam holds one ladder rather than two independent bits a
panel could switch on together. The renderer still reads
RenderEffects::ANTIALIASING and RenderEffects::CMAA2 —
bits and from_effects are the join,
and ForwardRenderer::add_passes is where the bits become passes.
The rungs above this one — MSAA 2×, 4× and 8× — are that decision’s next
slice and are deliberately not here (docs/backlog.md, MSAA was reopened
rather than reversed).
Serialized in snake_case, which is name’s spelling. A
camera stack names a rung by that word — see crate::stack — and
crcbl::settings writes the same word into [engine.video], so the two
seams a player’s choice can arrive through spell it once.
a_tier_is_spelled_the_way_the_settings_seam_spells_it is what holds the
attribute and that function together.
Variants§
None
Neither tier: the tonemap writes the caller’s target and no resolve pass is recorded at all.
Fxaa
FXAA 3.11 — RenderEffects::ANTIALIASING, one fullscreen pass.
Cmaa2
CMAA2 — RenderEffects::CMAA2, three passes and the higher tier.
Implementations§
Source§impl Antialiasing
impl Antialiasing
Sourcepub const ALL: [Self; 3]
pub const ALL: [Self; 3]
The tiers, in the order a settings ladder climbs them.
Ascending by cost and by what it removes, which is the order
apps/options’ ANTIALIASING row steps and the order
from_name searches.
Sourcepub const SLOT: RenderEffects
pub const SLOT: RenderEffects
The two bits one resolve slot is made of.
EffectRequest::resolve clears both before it sets the chosen one, so
a set that reached it with both on cannot leave with both on.
Public because a caller that wants no resolve has to name the slot rather than a tier. A fixture forcing one bit off leaves the other one running — which is what a frame reading a single texel back against the tonemap’s own arithmetic cannot afford — and a fixture naming the bits by hand is one that a third rung on the ladder would silently walk past.
Sourcepub const fn bits(self) -> RenderEffects
pub const fn bits(self) -> RenderEffects
The bits this tier sets, and no others.
Sourcepub const fn from_effects(effects: RenderEffects) -> Self
pub const fn from_effects(effects: RenderEffects) -> Self
The tier effects draws.
Cmaa2 wins where both bits are set, because that is
the choice ForwardRenderer::add_passes makes when it fills the slot:
this answers what the frame draws rather than what the set says.