Enum wgpu::SurfaceError [−][src]
pub enum SurfaceError {
Timeout,
Outdated,
Lost,
OutOfMemory,
}
Expand description
Result of an unsuccessful call to Surface::get_current_texture
.
Variants
Timeout
A timeout was encountered while trying to acquire the next frame.
Outdated
The underlying surface has changed, and therefore the swap chain must be updated.
Lost
The swap chain has been lost and needs to be recreated.
OutOfMemory
There is no more memory left to allocate a new frame.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SurfaceError
impl Send for SurfaceError
impl Sync for SurfaceError
impl Unpin for SurfaceError
impl UnwindSafe for SurfaceError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.