pub enum WgpuDispatcherError {
Dispatch(DispatchError),
UnsupportedPass(PassKind),
BindingKindMismatch {
node: NodeId,
binding: u32,
resource: ResourceId,
expected: BindingKind,
actual: &'static str,
},
OutputNotBound {
node: NodeId,
resource: ResourceId,
},
BoundResourceMissing {
node: NodeId,
binding: u32,
resource: ResourceId,
},
ShaderUnreadable {
material: String,
path: String,
source: Error,
},
FrameUniformUnbound {
resource: ResourceId,
},
FrameUniformKindMismatch {
resource: ResourceId,
actual: &'static str,
},
FrameUniformMisaligned {
resource: ResourceId,
actual: usize,
},
FrameUniformSizeMismatch {
resource: ResourceId,
actual: usize,
capacity: u64,
},
}Expand description
Typed dispatch-failure surface. Every variant here is
CONSTRUCTED by the dispatch path — the M3 review (2026-06-12)
found five declared-but-never-built variants advertising a typed
API the error paths didn’t deliver; MissingMaterial (materialless
nodes are clear nodes by design, so the state was unreachable) is
deleted and the rest now flow through Dispatcher::dispatch_node
via Display at the trait seam (the engawa trait returns
DispatchError, so typed variants stringify exactly once there).
Variants§
Dispatch(DispatchError)
UnsupportedPass(PassKind)
BindingKindMismatch
OutputNotBound
BoundResourceMissing
ShaderUnreadable
FrameUniformUnbound
Fields
§
resource: ResourceIdFrameUniformKindMismatch
FrameUniformMisaligned
FrameUniformSizeMismatch
Trait Implementations§
Source§impl Debug for WgpuDispatcherError
impl Debug for WgpuDispatcherError
Source§impl Display for WgpuDispatcherError
impl Display for WgpuDispatcherError
Source§impl Error for WgpuDispatcherError
impl Error for WgpuDispatcherError
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<DispatchError> for WgpuDispatcherError
impl From<DispatchError> for WgpuDispatcherError
Source§fn from(source: DispatchError) -> Self
fn from(source: DispatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuDispatcherError
impl !UnwindSafe for WgpuDispatcherError
impl Freeze for WgpuDispatcherError
impl Send for WgpuDispatcherError
impl Sync for WgpuDispatcherError
impl Unpin for WgpuDispatcherError
impl UnsafeUnpin for WgpuDispatcherError
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