pub enum PresentMode {
VSync,
Immediate,
Mailbox,
}Expand description
Swapchain presentation synchronization mode.
Variants§
VSync
Synchronized to display VBlank (tear-free, energy efficient).
Immediate
Immediate unsynchronized presentation for lowest latency.
Mailbox
Triple-buffered mailbox presentation for tear-free low latency.
Trait Implementations§
Source§impl Clone for PresentMode
impl Clone for PresentMode
impl Copy for PresentMode
Source§impl Debug for PresentMode
impl Debug for PresentMode
Source§impl Default for PresentMode
impl Default for PresentMode
impl Eq for PresentMode
Source§impl Hash for PresentMode
impl Hash for PresentMode
Source§impl Ord for PresentMode
impl Ord for PresentMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PresentMode
impl PartialEq for PresentMode
Source§impl PartialOrd for PresentMode
impl PartialOrd for PresentMode
impl StructuralPartialEq for PresentMode
Auto Trait Implementations§
impl Forget for PresentMode
impl Freeze for PresentMode
impl Move 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