pub enum PresentMode {
Fifo,
Mailbox,
Immediate,
}Expand description
how frames reach the window
Variants§
Fifo
vsync: one image per refresh, never tears (always available)
Mailbox
the newest image at the refresh, older ones dropped (no tearing, low latency)
Immediate
at once (tears; for measurements)
Trait Implementations§
Source§impl Clone for PresentMode
impl Clone for PresentMode
impl Copy for PresentMode
Source§impl Debug for PresentMode
impl Debug for PresentMode
impl Eq for PresentMode
Source§impl PartialEq for PresentMode
impl PartialEq for PresentMode
impl StructuralPartialEq for PresentMode
Auto Trait Implementations§
impl Forget for PresentMode
impl Freeze for PresentMode
impl RefUnwindSafe for PresentMode
impl Send for PresentMode
impl Sync for PresentMode
impl Unpin for PresentMode
impl UnsafeUnpin for PresentMode
impl UnwindSafe for PresentMode
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