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)
| 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 |
no test coverage detected