#[non_exhaustive]pub enum GraphError {
InvalidDependency,
MissingOutput,
SourceOutput,
EffectKindMismatch,
Render(RenderError),
}Expand description
Structural or execution failure in a render graph.
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.
InvalidDependency
A node references an ID not already present in the graph.
MissingOutput
No final output node was selected.
SourceOutput
An external source cannot be returned as an owned render result.
EffectKindMismatch
A registered shader kind does not match its graph node.
Render(RenderError)
A rendering operation failed.
Implementations§
Source§impl GraphError
impl GraphError
Sourcepub const fn into_render_error(self) -> RenderError
pub const fn into_render_error(self) -> RenderError
Collapses a graph failure into the renderer’s error type, reporting
every structural fault as RenderError::InvalidGraph.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
impl Copy for GraphError
Source§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
impl Eq for GraphError
Source§impl Error for GraphError
impl Error for GraphError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RenderError> for GraphError
impl From<RenderError> for GraphError
Source§fn from(error: RenderError) -> Self
fn from(error: RenderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphError
impl PartialEq for GraphError
impl StructuralPartialEq for GraphError
Auto Trait Implementations§
impl Freeze for GraphError
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnsafeUnpin for GraphError
impl UnwindSafe for GraphError
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.