#[non_exhaustive]pub enum ViewportError {
Show 14 variants
EmptyMesh {
positions: usize,
indices: usize,
},
MeshLengthMismatch {
positions: usize,
normals: usize,
},
MeshIndexOutOfBounds {
index: usize,
count: usize,
},
InvalidVertexIndex {
vertex_index: u32,
vertex_count: usize,
},
VolumeDataLengthMismatch {
actual: usize,
expected: usize,
dims: [u32; 3],
},
InvalidTextureData {
expected: usize,
actual: usize,
},
MeshSlotEmpty {
index: usize,
},
AttributeNotFound {
mesh_id: usize,
name: String,
},
AttributeLengthMismatch {
expected: usize,
got: usize,
},
McBufferTooLarge {
buffer: &'static str,
needed: u64,
limit: u64,
},
InvalidGaussianSplatData {
reason: &'static str,
},
JobWorkerLost {
reason: &'static str,
},
JobNotReady,
JobResultMissing {
reason: &'static str,
},
}Expand description
Errors that can occur during mesh upload and manipulation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyMesh
Mesh data has empty positions or indices.
MeshLengthMismatch
Positions and normals arrays have different lengths.
MeshIndexOutOfBounds
Mesh index is out of bounds for the mesh storage.
InvalidVertexIndex
An index buffer entry references a vertex that does not exist.
VolumeDataLengthMismatch
Volume scalar data length does not match the declared grid dimensions.
Fields
InvalidTextureData
Texture RGBA data has an unexpected size.
Fields
MeshSlotEmpty
Attempted to access or replace a mesh slot that is empty (previously removed).
AttributeNotFound
Named scalar attribute not found on the given mesh.
Fields
AttributeLengthMismatch
Attribute data length does not match the existing buffer.
replace_attribute requires the same vertex count as the original upload.
Fields
McBufferTooLarge
A buffer required for GPU marching cubes upload exceeds the device’s
max_buffer_size limit. The caller should fall back to CPU marching cubes.
Fields
InvalidGaussianSplatData
Gaussian splat data is malformed or empty.
JobWorkerLost
A background upload worker panicked or dropped its channel before sending a result.
JobNotReady
upload_result_* was called before the corresponding job reached the
Ready state. Poll upload_status and retry on the next frame.
JobResultMissing
upload_result_* was called with a JobId that does not belong to
the matching upload type, has already been taken, or was never
issued.
Trait Implementations§
Source§impl Clone for ViewportError
impl Clone for ViewportError
Source§fn clone(&self) -> ViewportError
fn clone(&self) -> ViewportError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ViewportError
impl Debug for ViewportError
Source§impl Display for ViewportError
impl Display for ViewportError
Source§impl Error for ViewportError
impl Error for ViewportError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ViewportError
impl RefUnwindSafe for ViewportError
impl Send for ViewportError
impl Sync for ViewportError
impl Unpin for ViewportError
impl UnsafeUnpin for ViewportError
impl UnwindSafe for ViewportError
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.