pub enum DynamicMeshError {
InvalidVertexCount,
InvalidVertex,
UpdateRangeOutOfBounds,
RendererMismatch,
CapacityTooLarge,
InvalidBudget,
BudgetExceeded {
resource: DynamicMeshBudgetResource,
limit: usize,
actual: usize,
},
AllocationFailed {
requested_bytes: usize,
},
}Expand description
Validation or ownership failure while changing a dynamic mesh.
Variants§
InvalidVertexCount
Triangle-list vertex counts must be divisible by three.
InvalidVertex
A position/depth is outside the portable shader envelope or a color is invalid.
UpdateRangeOutOfBounds
A partial update lies outside the mesh’s current vertex range.
RendererMismatch
The mesh belongs to a different renderer and GPU device.
CapacityTooLarge
The mesh capacity exceeds the current device’s vertex-buffer limit.
InvalidBudget
At least one complete triangle must fit in every configured limit.
BudgetExceeded
A bounded mesh operation exceeded a host-selected limit.
Fields
§
resource: DynamicMeshBudgetResourceWork category that exceeded its ceiling.
AllocationFailed
CPU recovery storage could not be reserved without changing the mesh.
Trait Implementations§
Source§impl Clone for DynamicMeshError
impl Clone for DynamicMeshError
impl Copy for DynamicMeshError
Source§impl Debug for DynamicMeshError
impl Debug for DynamicMeshError
Source§impl Display for DynamicMeshError
impl Display for DynamicMeshError
impl Eq for DynamicMeshError
Source§impl Error for DynamicMeshError
impl Error for DynamicMeshError
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 DynamicMeshError
impl PartialEq for DynamicMeshError
impl StructuralPartialEq for DynamicMeshError
Auto Trait Implementations§
impl Freeze for DynamicMeshError
impl RefUnwindSafe for DynamicMeshError
impl Send for DynamicMeshError
impl Sync for DynamicMeshError
impl Unpin for DynamicMeshError
impl UnsafeUnpin for DynamicMeshError
impl UnwindSafe for DynamicMeshError
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.