pub struct Taa {
pub box_extend: f32,
/* private fields */
}Expand description
TAA-Zustand: double-buffered History + ein Filterschritt pro Pixel.
Fields§
§box_extend: f32Dehnung der Clamp-Box zur History hin (0 = hart geklemmt).
Implementations§
Source§impl Taa
impl Taa
pub fn new(width: u32, height: u32) -> Self
Sourcepub fn step(
&mut self,
x: u32,
y: u32,
current: [f32; 3],
neighborhood: &[[f32; 3]],
velocity: [f32; 2],
blend: f32,
) -> [f32; 3]
pub fn step( &mut self, x: u32, y: u32, current: [f32; 3], neighborhood: &[[f32; 3]], velocity: [f32; 2], blend: f32, ) -> [f32; 3]
Ein Frame-Schritt für Pixel (x, y).
current— aktueller linearer RGB-Wert (nach Jitter-Rekonstruktion)neighborhood— die 3×3-Nachbarschaft voncurrent(Box-Quelle)velocity— Bewegung in Bildschirm-Pixeln seit letztem Frameblend— Anteil der aktuellen Farbe (0..=1, typ. 0.1 bei 16 Samples)
Schreibt in den Next-Buffer; erst Self::commit macht ihn zur
History. Gibt das gemischte Pixel zurück.
pub fn history(&self) -> &History
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Taa
impl RefUnwindSafe for Taa
impl Send for Taa
impl Sync for Taa
impl Unpin for Taa
impl UnsafeUnpin for Taa
impl UnwindSafe for Taa
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more