pub enum Mesh3dRenderError {
RendererMismatch,
InvalidGeometryTransform,
UnportableSurfaceTopology,
InstanceCapacityTooLarge,
CameraTargetAspectMismatch,
InvalidEdgeProjection,
ObjectFailure {
object_id: Object3dId,
reason: Mesh3dObjectError,
},
GeneratedGeometryCapacityTooLarge,
}Expand description
Failure while encoding a depth-tested 3D scene.
Variants§
RendererMismatch
A mesh or target belongs to another renderer/device identity.
InvalidGeometryTransform
Model/camera inputs or their arithmetic leave the portable GPU envelope.
UnportableSurfaceTopology
A surface triangle has clipping topology or a projected orientation that is not stable across portable shader arithmetic.
InstanceCapacityTooLarge
The visible per-frame object buffers exceed a GPU or host capacity.
CameraTargetAspectMismatch
Camera projection aspect does not match the target logical viewport.
InvalidEdgeProjection
Edge clipping, projection, or style arithmetic is not portable for this target.
ObjectFailure
A visible object’s transform, surface or edge proof failed. The stable handle identifies that exact object even when several share one mesh.
Fields
object_id: Object3dIdComplete scene-provenance-bearing object handle.
reason: Mesh3dObjectErrorExisting numerical validation category for this object.
GeneratedGeometryCapacityTooLarge
Generated clipping topology exceeds a caller budget or device capacity.
Implementations§
Source§impl Mesh3dRenderError
impl Mesh3dRenderError
Sourcepub const fn object_id(self) -> Option<Object3dId>
pub const fn object_id(self) -> Option<Object3dId>
Returns an offending object when the failure is uniquely instance-local.
Ownership, camera/target mismatch and aggregate capacity errors return
None; they must not be attributed to an arbitrary visible object.
Trait Implementations§
Source§impl Clone for Mesh3dRenderError
impl Clone for Mesh3dRenderError
Source§fn clone(&self) -> Mesh3dRenderError
fn clone(&self) -> Mesh3dRenderError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Mesh3dRenderError
Source§impl Debug for Mesh3dRenderError
impl Debug for Mesh3dRenderError
Source§impl Display for Mesh3dRenderError
impl Display for Mesh3dRenderError
impl Eq for Mesh3dRenderError
Source§impl Error for Mesh3dRenderError
impl Error for Mesh3dRenderError
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()
Source§impl PartialEq for Mesh3dRenderError
impl PartialEq for Mesh3dRenderError
impl StructuralPartialEq for Mesh3dRenderError
Auto Trait Implementations§
impl Freeze for Mesh3dRenderError
impl RefUnwindSafe for Mesh3dRenderError
impl Send for Mesh3dRenderError
impl Sync for Mesh3dRenderError
impl Unpin for Mesh3dRenderError
impl UnsafeUnpin for Mesh3dRenderError
impl UnwindSafe for Mesh3dRenderError
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.