Skip to main content

RenderError

Enum RenderError 

Source
#[non_exhaustive]
pub enum RenderError {
Show 24 variants Gpu(GpuError), Acceleration(BvhBuildError), Entity(EntityIdError), Picking(PickingError), Dataset(DatasetError), PickingOwnerMissing, PickingPageMissing { dataset: DatasetId, kind: EntityKind, }, RelationSourceMissing { domain: RowDomain, }, Packing(PackingError), GraphCycle { pass: &'static str, }, UnknownResource { pass: &'static str, resource: u32, }, InvalidImageSize, SourceCapabilityMissing { capability: &'static str, }, InvalidSequence { reason: &'static str, }, SequenceBackpressure { max_in_flight: u8, }, InvalidFocusTarget { reason: &'static str, }, ImageEncoding { summary: String, }, SessionEncoding { summary: String, }, Residency { reason: &'static str, }, ChunkResidency(ChunkResidencyError), BrickAtlas(BrickAtlasError), AssetIdentityCollision { dataset: DatasetId, resident_fingerprint: u64, incoming_fingerprint: u64, }, SurfaceComponents { reason: &'static str, }, AssetArena(AssetArenaError),
}
Expand description

Everything that can go wrong constructing or driving the engine.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Gpu(GpuError)

A device-level failure, carried upward with its own code.

§

Acceleration(BvhBuildError)

A CPU-built hierarchy exceeded the compact GPU index layout.

§

Entity(EntityIdError)

A logical entity row cannot be encoded in a chunk-local GPU identity.

§

Picking(PickingError)

A bounded global picking page transition or readback was invalid.

§

Dataset(DatasetError)

A chunk span used by a resident pick page was invalid.

§

PickingOwnerMissing

A visible scene entity references a structure that is no longer resident.

§

PickingPageMissing

A GPU record requested a namespace absent from the bounded page table.

Fields

§dataset: DatasetId

Dataset whose page was required.

§kind: EntityKind

Entity namespace whose page was required.

§

RelationSourceMissing

A validated dynamic relation source is not resident in the GPU scene.

Fields

§domain: RowDomain

Spatial table required by the relation stream.

§

Packing(PackingError)

CPU lowering exceeded a compact GPU record field.

§

GraphCycle

The render graph contains a dependency cycle.

Fields

§pass: &'static str

A pass on the cycle.

§

UnknownResource

A pass referenced a resource id the graph never declared.

Fields

§pass: &'static str

The offending pass.

§resource: u32

The undeclared id.

§

InvalidImageSize

Off-screen dimensions overflowed a portable texture/readback layout.

§

SourceCapabilityMissing

A physical representation requires source annotations not exposed by its provider.

Fields

§capability: &'static str

Required provider capability.

§

InvalidSequence

Sequence timestamps or buffering parameters violate the deterministic contract.

Fields

§reason: &'static str

Stable caller-actionable reason.

§

SequenceBackpressure

The caller must drain a completed sequence frame before submitting more work.

Fields

§max_in_flight: u8

Configured bounded readback depth.

§

InvalidFocusTarget

A scene-tracked optical target is stale, empty, or behind the camera.

Fields

§reason: &'static str

Stable, caller-actionable reason.

§

ImageEncoding

The mapped image could not be encoded for publication.

Fields

§summary: String

Encoder-provided diagnostic.

§

SessionEncoding

A render session could not be encoded or decoded.

Fields

§summary: String

Serializer-provided diagnostic.

§

Residency

Fixed residency capacity or lifecycle state rejected frame work.

Fields

§reason: &'static str

Stable failure category without backend-specific text allocation.

§

ChunkResidency(ChunkResidencyError)

Provider chunk residency failed with a typed lifecycle or capacity error.

§

BrickAtlas(BrickAtlasError)

Sparse volume atlas validation, capacity or lifecycle failure.

§

AssetIdentityCollision

One caller-owned dataset id was reused for different immutable data.

Fields

§dataset: DatasetId

Caller-owned dataset identity that collided.

§resident_fingerprint: u64

Fingerprint already resident for the dataset.

§incoming_fingerprint: u64

Fingerprint supplied by the incoming placement.

§

SurfaceComponents

Sampled-surface component lowering exceeded its bounded working set.

Fields

§reason: &'static str

Stable validation or capacity reason.

§

AssetArena(AssetArenaError)

Immutable GPU storage could not allocate or relocate safely.

Implementations§

Source§

impl RenderError

Source

pub fn code(&self) -> &'static str

The stable registry code for this condition.

Trait Implementations§

Source§

impl Debug for RenderError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RenderError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for RenderError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<BrickAtlasError> for RenderError

Source§

fn from(source: BrickAtlasError) -> Self

Converts to this type from the input type.
Source§

impl From<BvhBuildError> for RenderError

Source§

fn from(source: BvhBuildError) -> Self

Converts to this type from the input type.
Source§

impl From<ChunkResidencyError> for RenderError

Source§

fn from(source: ChunkResidencyError) -> Self

Converts to this type from the input type.
Source§

impl From<DatasetError> for RenderError

Source§

fn from(source: DatasetError) -> Self

Converts to this type from the input type.
Source§

impl From<EntityIdError> for RenderError

Source§

fn from(source: EntityIdError) -> Self

Converts to this type from the input type.
Source§

impl From<GpuError> for RenderError

Source§

fn from(source: GpuError) -> Self

Converts to this type from the input type.
Source§

impl From<PackingError> for RenderError

Source§

fn from(source: PackingError) -> Self

Converts to this type from the input type.
Source§

impl From<PickingError> for RenderError

Source§

fn from(source: PickingError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.