pub enum BrickAtlasError {
InvalidConfiguration,
ShapeMismatch {
brick: BrickId,
},
PayloadSize {
brick: BrickId,
expected: usize,
received: usize,
},
KindMismatch {
brick: BrickId,
},
LifecycleCapacity {
capacity: usize,
},
EvictionPending {
brick: BrickId,
},
WorkingSet(BrickWorkingSetError),
Upload(UploadBackpressure),
Gpu(GpuError),
}Expand description
Sparse-atlas validation, capacity and lifecycle failures.
Variants§
InvalidConfiguration
Fixed dimensions or capacities cannot form a portable atlas.
ShapeMismatch
A descriptor does not use the atlas’s common stored shape.
PayloadSize
The payload byte count does not match the descriptor shape.
Fields
KindMismatch
Metadata semantics do not match the atlas texel interpretation.
LifecycleCapacity
All fixed lifecycle records are occupied.
EvictionPending
A duplicate eviction is already pending.
WorkingSet(BrickWorkingSetError)
Existing logical working-set validation failed.
Upload(UploadBackpressure)
Fixed upload staging applied typed backpressure.
Gpu(GpuError)
Device creation, submission polling or limits failed.
Trait Implementations§
Source§impl Debug for BrickAtlasError
impl Debug for BrickAtlasError
Source§impl Display for BrickAtlasError
impl Display for BrickAtlasError
Source§impl Error for BrickAtlasError
impl Error for BrickAtlasError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BrickAtlasError> for RenderError
impl From<BrickAtlasError> for RenderError
Source§fn from(source: BrickAtlasError) -> Self
fn from(source: BrickAtlasError) -> Self
Converts to this type from the input type.
Source§impl From<BrickWorkingSetError> for BrickAtlasError
impl From<BrickWorkingSetError> for BrickAtlasError
Source§fn from(source: BrickWorkingSetError) -> Self
fn from(source: BrickWorkingSetError) -> Self
Converts to this type from the input type.
Source§impl From<GpuError> for BrickAtlasError
impl From<GpuError> for BrickAtlasError
Source§impl From<UploadBackpressure> for BrickAtlasError
impl From<UploadBackpressure> for BrickAtlasError
Source§fn from(source: UploadBackpressure) -> Self
fn from(source: UploadBackpressure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrickAtlasError
impl RefUnwindSafe for BrickAtlasError
impl Send for BrickAtlasError
impl Sync for BrickAtlasError
impl Unpin for BrickAtlasError
impl UnsafeUnpin for BrickAtlasError
impl UnwindSafe for BrickAtlasError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more