MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / set_taa_enabled

Method set_taa_enabled

native/shared/src/renderer/mod.rs:6572–6582  ·  view source on GitHub ↗

Toggle TAA on/off. Off = no jitter, no history blend, no extra texture writes. Until `set_render_scale` is called explicitly this also flips `render_scale` between 0.5 (on) and 1.0 (off) for backwards compat with the former TSR coupling; once the user sets scale explicitly that choice sticks across subsequent TAA toggles.

(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

6570 /// coupling; once the user sets scale explicitly that choice
6571 /// sticks across subsequent TAA toggles.
6572 pub fn set_taa_enabled(&mut self, enabled: bool) {
6573 if enabled != self.taa_enabled {
6574 self.taa_enabled = enabled;
6575 if !self.render_scale_explicit {
6576 self.render_scale = if enabled { 0.5 } else { 1.0 };
6577 }
6578 self.taa_frame_index = 0;
6579 let (w, h) = (self.surface_config.width, self.surface_config.height);
6580 self.resize(w, h, self.logical_width, self.logical_height);
6581 }
6582 }
6583
6584 /// Set the render-resolution multiplier explicitly. Clamped to
6585 /// [0.5, 1.0]. Triggers a resize so render-res intermediates

Callers 6

bloom_set_taa_enabledFunction · 0.80
bloom_set_taa_enabledFunction · 0.80
bloom_set_taa_enabledFunction · 0.80
apply_quality_presetMethod · 0.80
bloom_set_taa_enabledFunction · 0.80
bloom_set_taa_enabledFunction · 0.80

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected