pub enum BackbufferPersistence {
Persistent,
Transient,
}Expand description
Does the backbuffer survive flush()?
CPU raster backends are Persistent; swap-chain GPU backends
(SDL accelerated / wgpu / Web canvas) are Transient. App::run
picks dirty-only vs. full-frame rendering based on this.
Variants§
Trait Implementations§
Source§impl Clone for BackbufferPersistence
impl Clone for BackbufferPersistence
Source§fn clone(&self) -> BackbufferPersistence
fn clone(&self) -> BackbufferPersistence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackbufferPersistence
impl Debug for BackbufferPersistence
Source§impl PartialEq for BackbufferPersistence
impl PartialEq for BackbufferPersistence
Source§fn eq(&self, other: &BackbufferPersistence) -> bool
fn eq(&self, other: &BackbufferPersistence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackbufferPersistence
impl Eq for BackbufferPersistence
impl StructuralPartialEq for BackbufferPersistence
Auto Trait Implementations§
impl Freeze for BackbufferPersistence
impl RefUnwindSafe for BackbufferPersistence
impl Send for BackbufferPersistence
impl Sync for BackbufferPersistence
impl Unpin for BackbufferPersistence
impl UnsafeUnpin for BackbufferPersistence
impl UnwindSafe for BackbufferPersistence
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