pub enum ScreenPrimitiveError {
InvalidGeometry,
PrecisionLimit,
InvalidColor,
UnsupportedCommand {
index: usize,
},
BudgetExceeded {
resource: &'static str,
limit: usize,
required: usize,
},
AllocationFailed {
requested_bytes: usize,
},
DeviceCapacityExceeded,
RendererMismatch,
}Expand description
Explicit rejection from analytic primitive construction or resource updates.
Variants§
InvalidGeometry
Geometry is degenerate or outside the portable finite shader envelope.
PrecisionLimit
Compact f32 representation cannot preserve the subpixel source boundary. Use ordinary scene geometry or reduce the shape’s coordinate/extent range.
InvalidColor
Color channels are not finite and normalized to 0..=1.
UnsupportedCommand
Source scene command cannot be represented by this narrow solid path.
BudgetExceeded
A caller work/residency bound would be exceeded; nothing was truncated.
Fields
AllocationFailed
Host allocation failed before the visible snapshot was changed.
DeviceCapacityExceeded
Instance capacity exceeds u32 draw addressing or the logical device limit.
RendererMismatch
Resource belongs to another logical renderer; restore it first.
Trait Implementations§
Source§impl Clone for ScreenPrimitiveError
impl Clone for ScreenPrimitiveError
Source§impl Debug for ScreenPrimitiveError
impl Debug for ScreenPrimitiveError
Source§impl Display for ScreenPrimitiveError
impl Display for ScreenPrimitiveError
impl Eq for ScreenPrimitiveError
Source§impl Error for ScreenPrimitiveError
impl Error for ScreenPrimitiveError
1.30.0 · 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 PartialEq for ScreenPrimitiveError
impl PartialEq for ScreenPrimitiveError
impl StructuralPartialEq for ScreenPrimitiveError
Auto Trait Implementations§
impl Freeze for ScreenPrimitiveError
impl RefUnwindSafe for ScreenPrimitiveError
impl Send for ScreenPrimitiveError
impl Sync for ScreenPrimitiveError
impl Unpin for ScreenPrimitiveError
impl UnsafeUnpin for ScreenPrimitiveError
impl UnwindSafe for ScreenPrimitiveError
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
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
Compare self to
key and return true if they are equal.