#[repr(C)]
pub enum PresentMode {
Immediate,
Mailbox,
Fifo,
}
Expand description
Behavior of the presentation engine based on frame rate.
Variants
Immediate
The presentation engine does not wait for a vertical blanking period and
the request is presented immediately. This is a low-latency presentation mode,
but visible tearing may be observed. Will fallback to Fifo
if unavailable on the
selected platform and backend. Not optimal for mobile.
Mailbox
The presentation engine waits for the next vertical blanking period to update
the current image, but frames may be submitted without delay. This is a low-latency
presentation mode and visible tearing will not be observed. Will fallback to Fifo
if unavailable on the selected platform and backend. Not optimal for mobile.
Fifo
The presentation engine waits for the next vertical blanking period to update
the current image. The framerate will be capped at the display refresh rate,
corresponding to the VSync
. Tearing cannot be observed. Optimal for mobile.
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 more
sourceimpl 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
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.