pub struct EffectOverride { /* private fields */ }Expand description
A programmatic override: which effects are forced on, and which off.
The third layer, and the only one that may move a decision either way —
the two around it clamp downward. A game with its own quality logic drives
this directly, which is the escape hatch topic 39 names
GpuContext::set_pacing as the precedent for.
The two sets are kept disjoint by construction: force is the
only way to write either, and it removes the bit from the other set. A
effect in both would make the resolution order depend on which of the two is
applied first, which is a rule nobody should have to know.
Implementations§
Source§impl EffectOverride
impl EffectOverride
Sourcepub const fn force(self, effects: RenderEffects, state: Option<bool>) -> Self
pub const fn force(self, effects: RenderEffects, state: Option<bool>) -> Self
Forces every effect in effects on, off, or back to undecided.
Some(true) is on, Some(false) is off, and None releases them —
which is not the same as forcing them off, and is what a settings screen
does when a player returns a row to “auto”.