#[non_exhaustive]pub enum GpuError {
Show 16 variants
InvalidCamera,
CameraRange,
IncompleteScene,
EmptyScene,
Translucent(ObjectId),
InvalidTriangle(ObjectId),
Precision {
mesh: ObjectId,
source: SceneError,
},
BufferLimit,
TextureSize(u32, u32),
AdapterUnavailable(String),
DeviceUnavailable(String),
Validation(String),
OutOfMemory(String),
Device(String),
Poll(String),
Readback(String),
}Expand description
Why a GPU operation failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidCamera
The camera parameters or the aspect ratio are not finite or describe no frustum.
CameraRange
The camera distance or target offset is outside the representable range.
IncompleteScene
A scene the caller marked incomplete was given to a path that needs a complete one.
EmptyScene
The scene has no triangles.
Translucent(ObjectId)
A mesh is not opaque; translucent surfaces are not supported.
InvalidTriangle(ObjectId)
A triangle refers to a vertex the mesh does not have.
Precision
A vertex is outside the f32 precision budget relative to the scene origin.
BufferLimit
The scene exceeds a device buffer or index limit.
TextureSize(u32, u32)
The requested texture size is zero or exceeds the device limit.
No suitable adapter.
The adapter refused to create a device.
Validation(String)
A captured validation error.
OutOfMemory(String)
A captured out-of-memory error.
Device(String)
An uncaptured error or a lost device reported by the device callbacks.
Poll(String)
Waiting for submitted work failed.
Readback(String)
Reading a texture back failed.
Trait Implementations§
Source§impl Error for GpuError
impl Error for GpuError
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()