pub enum BufferAge {
Undefined,
Frames(u32),
}Expand description
How stale the contents of the buffer just acquired are.
Modelled on EGL_EXT_buffer_age. With N-buffering the buffer handed back holds
the contents of frame current - age, so a correct incremental repaint must
cover the union of the last age frames’ damage — not just this frame’s.
Variants§
Undefined
Contents are undefined. Repaint everything.
Returned after a resize, on the first frame, and by backends that cannot track age (most compositor-mediated ones).
Frames(u32)
Contents are those of the frame n presents ago. 1 means the buffer we
most recently presented, i.e. single buffering or a persistent shadow.
Trait Implementations§
impl Copy for BufferAge
impl Eq for BufferAge
impl StructuralPartialEq for BufferAge
Auto Trait Implementations§
impl Freeze for BufferAge
impl RefUnwindSafe for BufferAge
impl Send for BufferAge
impl Sync for BufferAge
impl Unpin for BufferAge
impl UnsafeUnpin for BufferAge
impl UnwindSafe for BufferAge
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