pub struct History {
pub width: u32,
pub height: u32,
pub pixels: Vec<[f32; 4]>,
}Expand description
History-Puffer: RGB (linear) + Akkumulations-Gewicht pro Pixel.
Gewicht 0 = „kein gültiger Vorgänger“ (Frame 1, nach Object ID changes oder Resizes). Koordinaten werden auf den Rand geklemmt — Auslesen außerhalb ist sicher.
Fields§
§width: u32§height: u32§pixels: Vec<[f32; 4]>Implementations§
Source§impl History
impl History
pub fn new(width: u32, height: u32) -> Self
pub fn get(&self, x: u32, y: u32) -> [f32; 4]
pub fn set(&mut self, x: u32, y: u32, v: [f32; 4])
Sourcepub fn sample_bilinear(&self, fx: f32, fy: f32) -> [f32; 3]
pub fn sample_bilinear(&self, fx: f32, fy: f32) -> [f32; 3]
Bilineares RGB-Sample in Float-Pixelkoordinaten (Rand wird geklemmt — kein Kraterrand bei Reprojektion über die Grenze).
Sourcepub fn weight_bilinear(&self, fx: f32, fy: f32) -> f32
pub fn weight_bilinear(&self, fx: f32, fy: f32) -> f32
Bilinear interpoliertes Gewicht (Gültigkeit) an Float-Koordinaten.
Trait Implementations§
impl StructuralPartialEq for History
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
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