#[repr(i32)]pub enum WGPUPresentMode {
Undefined = 0,
Fifo = 1,
FifoRelaxed = 2,
Immediate = 3,
Mailbox = 4,
}Variants§
Undefined = 0
Present mode is not specified. Use the default.
Fifo = 1
The presentation of the image to the user waits for the next vertical blanking period to update in a first-in, first-out manner.
Tearing cannot be observed and frame-loop will be limited to the display’s refresh rate.
This is the only mode that’s always available.
FifoRelaxed = 2
The presentation of the image to the user tries to wait for the next vertical blanking period but may decide to not wait if a frame is presented late.
Tearing can sometimes be observed but late-frame don’t produce a full-frame stutter in the presentation.
This is still a first-in, first-out mechanism so a frame-loop will be limited to the display’s refresh rate.
Immediate = 3
The presentation of the image to the user is updated immediately without waiting for a vertical blank.
Tearing can be observed but latency is minimized.
Mailbox = 4
The presentation of the image to the user waits for the next vertical blanking period to update to the latest provided image.
Tearing cannot be observed and a frame-loop is not limited to the display’s refresh rate.
Implementations§
Trait Implementations§
Source§impl Clone for WGPUPresentMode
impl Clone for WGPUPresentMode
Source§fn clone(&self) -> WGPUPresentMode
fn clone(&self) -> WGPUPresentMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more