pub enum RendererSurfacePresentMode {
Immediate,
Mailbox,
Fifo,
FifoRelaxed,
}Expand description
Concrete presentation mode selected from the active Linux surface.
This is deliberately separate from RendererPresentMode: NoVsync is a
preference with fallbacks, while this type reports the mode actually passed
to wgpu after inspecting the surface capabilities. A compositor may still
pace redraw callbacks or scanout independently of this selection.
Variants§
Immediate
Immediate replacement without a presentation queue or refresh pacing.
Mailbox
Single-slot replacement queue synchronized to display refresh.
Fifo
Strict first-in-first-out queue synchronized to display refresh.
FifoRelaxed
FIFO that may tear when a frame misses the refresh interval.
Implementations§
Source§impl RendererSurfacePresentMode
impl RendererSurfacePresentMode
Sourcepub const fn is_refresh_synchronized(self) -> bool
pub const fn is_refresh_synchronized(self) -> bool
Returns whether this mode presents on display refresh boundaries.
Trait Implementations§
Source§impl Clone for RendererSurfacePresentMode
impl Clone for RendererSurfacePresentMode
impl Copy for RendererSurfacePresentMode
Source§impl Debug for RendererSurfacePresentMode
impl Debug for RendererSurfacePresentMode
Source§impl Display for RendererSurfacePresentMode
impl Display for RendererSurfacePresentMode
impl Eq for RendererSurfacePresentMode
impl StructuralPartialEq for RendererSurfacePresentMode
Auto Trait Implementations§
impl Freeze for RendererSurfacePresentMode
impl RefUnwindSafe for RendererSurfacePresentMode
impl Send for RendererSurfacePresentMode
impl Sync for RendererSurfacePresentMode
impl Unpin for RendererSurfacePresentMode
impl UnsafeUnpin for RendererSurfacePresentMode
impl UnwindSafe for RendererSurfacePresentMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.