pub enum RenderError {
NoAdapter(String),
DeviceRequest(String),
BufferMap(String),
Poll(String),
InvalidSize {
width: u32,
height: u32,
},
SizeTooLarge {
width: u32,
height: u32,
max: u32,
},
MeshData(String),
EventLoop(String),
SurfaceConfig(String),
Operations(OperationsError),
Topology(TopologyError),
}Expand description
Errors that can occur while rendering a solid offscreen.
Variants§
NoAdapter(String)
No wgpu adapter could be obtained (neither a real GPU nor a software fallback). The crate is still usable on machines that do provide one.
DeviceRequest(String)
The adapter could not provide a device/queue matching the request.
BufferMap(String)
A GPU buffer could not be mapped for readback.
Poll(String)
Polling the device for readback completion failed.
InvalidSize
The requested render dimensions were invalid (zero width or height).
SizeTooLarge
The requested render dimensions exceed the adapter’s maximum 2D texture size, so a render would fail GPU validation.
Fields
MeshData(String)
The tessellation produced a mesh that violates a renderer invariant (e.g. an index buffer length not divisible by 3, an out-of-range vertex index, or grouped face offsets that do not cover every triangle).
EventLoop(String)
The windowing event loop could not be created or run (viewer only).
SurfaceConfig(String)
A window surface could not be created or configured (viewer only).
Operations(OperationsError)
Tessellation of the input solid failed.
Topology(TopologyError)
Topology traversal of the input solid failed.
Trait Implementations§
Source§impl Debug for RenderError
impl Debug for RenderError
Source§impl Display for RenderError
impl Display for RenderError
Source§impl Error for RenderError
impl Error for RenderError
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 From<OperationsError> for RenderError
impl From<OperationsError> for RenderError
Source§fn from(source: OperationsError) -> Self
fn from(source: OperationsError) -> Self
Source§impl From<TopologyError> for RenderError
impl From<TopologyError> for RenderError
Source§fn from(source: TopologyError) -> Self
fn from(source: TopologyError) -> Self
Auto Trait Implementations§
impl Freeze for RenderError
impl RefUnwindSafe for RenderError
impl Send for RenderError
impl Sync for RenderError
impl Unpin for RenderError
impl UnsafeUnpin for RenderError
impl UnwindSafe for RenderError
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> 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 more