pub enum AcquireStatus {
Usable,
Outdated,
Lost,
Transient,
Invalid,
}Expand description
wgpu-independent classification of a swapchain-acquire attempt.
The renderer maps wgpu::SurfaceError onto this so the acquire policy
(decide_acquire) stays pure and testable.
Variants§
Usable
Success/Suboptimal: a texture is available to present.
Outdated
Outdated: the swapchain is stale and must be reconfigured.
Lost
Lost: the surface is gone; drop it and move to SurfaceLost.
Transient
Timeout/Occluded: transient; skip this frame.
Invalid
Validation: the swapchain raised a validation error on acquire (observed
under the Android emulator’s SwiftShader driver as a one-off hiccup).
Treated as recoverable — reconfigure the surface and retry — rather than
a hard failure that would wedge the app, since the uncaptured-error
handler the device is created with already prevents the process-killing
panic wgpu would otherwise raise.
Trait Implementations§
Source§impl Clone for AcquireStatus
impl Clone for AcquireStatus
impl Copy for AcquireStatus
Source§impl Debug for AcquireStatus
impl Debug for AcquireStatus
impl Eq for AcquireStatus
Source§impl PartialEq for AcquireStatus
impl PartialEq for AcquireStatus
impl StructuralPartialEq for AcquireStatus
Auto Trait Implementations§
impl Freeze for AcquireStatus
impl RefUnwindSafe for AcquireStatus
impl Send for AcquireStatus
impl Sync for AcquireStatus
impl Unpin for AcquireStatus
impl UnsafeUnpin for AcquireStatus
impl UnwindSafe for AcquireStatus
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
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
key and return true if they are equal.