Enum gfx_hal::window::PresentMode
source · #[repr(C)]
pub enum PresentMode {
Immediate,
Mailbox,
Fifo,
Relaxed,
}
Expand description
Specifies the mode regulating how a swapchain presents frames.
Variants
Immediate
Don’t ever wait for v-sync.
Mailbox
Wait for v-sync, overwrite the last rendered frame.
Fifo
Present frames in the same order they are rendered.
Relaxed
Don’t wait for the next v-sync if we just missed it.
Trait Implementations
sourceimpl Clone for PresentMode
impl Clone for PresentMode
sourcefn clone(&self) -> PresentMode
fn clone(&self) -> PresentMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PresentMode
impl Debug for PresentMode
sourceimpl Hash for PresentMode
impl Hash for PresentMode
sourceimpl PartialEq<PresentMode> for PresentMode
impl PartialEq<PresentMode> for PresentMode
sourcefn eq(&self, other: &PresentMode) -> bool
fn eq(&self, other: &PresentMode) -> bool
impl Copy for PresentMode
impl Eq for PresentMode
impl StructuralEq for PresentMode
impl StructuralPartialEq for PresentMode
Auto Trait Implementations
impl RefUnwindSafe for PresentMode
impl Send for PresentMode
impl Sync for PresentMode
impl Unpin for PresentMode
impl UnwindSafe for PresentMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more