spatialrust_render_wgpu/error.rs
1/// Result type returned by the wgpu rendering backend.
2pub type RenderResult<T> = Result<T, RenderError>;
3
4/// Errors returned by explicit rendering operations.
5#[derive(Clone, Debug, PartialEq, Eq, thiserror::Error)]
6pub enum RenderError {
7 /// Geometry is too large for the renderer's addressable counts or buffers.
8 #[error("geometry size is unsupported: {0}")]
9 GeometrySize(String),
10 /// A GPU resource belongs to another renderer runtime.
11 #[error("runtime mismatch: {0}")]
12 RuntimeMismatch(String),
13 /// A visualization transfer receipt could not be constructed.
14 #[error("transfer receipt: {0}")]
15 Transfer(String),
16 /// A caller-requested GPU readback failed.
17 #[error("readback failed: {0}")]
18 Readback(String),
19}