pub struct TrailBuffer2d { /* private fields */ }Expand description
A pair of offscreen targets used for bounded temporal accumulation.
Each accumulation retains a caller-selected amount of the previous frame and then composites a distinct source target over it. The buffer owns no domain state and can therefore serve particles, scalar fields, or any later target-rendering producer.
Implementations§
Source§impl TrailBuffer2d
impl TrailBuffer2d
Sourcepub fn allocation_bytes(&self) -> usize
pub fn allocation_bytes(&self) -> usize
Returns nominal texel-storage bytes for both ping-pong textures.
Auto Trait Implementations§
impl !RefUnwindSafe for TrailBuffer2d
impl !UnwindSafe for TrailBuffer2d
impl Freeze for TrailBuffer2d
impl Send for TrailBuffer2d
impl Sync for TrailBuffer2d
impl Unpin for TrailBuffer2d
impl UnsafeUnpin for TrailBuffer2d
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