pub enum PresentMode {
Immediate,
Mailbox,
Fifo,
FifoRelaxed,
}Expand description
Presentation mode defining how swapchain images are presented to the display server.
Variants§
Immediate
Presentation happens immediately without waiting for vertical blanking (may tear).
Mailbox
Triple-buffering with lowest input latency: unpresented frames are replaced by newer frames.
Fifo
Standard VSync FIFO presentation queue (zero tearing, 60/120 FPS capped).
FifoRelaxed
VSync FIFO with adaptive tearing if frame deadline is missed.
Trait Implementations§
Source§impl Clone for PresentMode
impl Clone for PresentMode
Source§fn clone(&self) -> PresentMode
fn clone(&self) -> PresentMode
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 moreimpl Copy for PresentMode
Source§impl Debug for PresentMode
impl Debug for PresentMode
Source§impl Default for PresentMode
impl Default for PresentMode
Source§fn default() -> PresentMode
fn default() -> PresentMode
Returns the “default value” for a type. Read more
impl Eq for PresentMode
Source§impl Hash for PresentMode
impl Hash 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.