Enum wgpu_types::SurfaceStatus
source · #[repr(C)]pub enum SurfaceStatus {
Good = 0,
Suboptimal = 1,
Timeout = 2,
Outdated = 3,
Lost = 4,
Unknown = 5,
}
Expand description
Status of the received surface image.
Variants§
Good = 0
No issues.
Suboptimal = 1
The swap chain is operational, but it does no longer perfectly match the surface. A re-configuration is needed.
Timeout = 2
Unable to get the next frame, timed out.
Outdated = 3
The surface under the swap chain has changed.
Lost = 4
The surface under the swap chain is lost.
Unknown = 5
The surface status is not known since get_current_texture
previously failed.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceStatus
impl Send for SurfaceStatus
impl Sync for SurfaceStatus
impl Unpin for SurfaceStatus
impl UnwindSafe for SurfaceStatus
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