Enum wgpu_core::command::RenderCommandError
source · [−]pub enum RenderCommandError {
Show 18 variants
InvalidBindGroup(BindGroupId),
InvalidRenderBundle(RenderBundleId),
BindGroupIndexOutOfRange {
index: u8,
max: u32,
},
UnalignedBufferOffset(u64, &'static str, u32),
InvalidDynamicOffsetCount {
actual: usize,
expected: usize,
},
InvalidPipeline(RenderPipelineId),
InvalidQuerySet(QuerySetId),
IncompatiblePipelineTargets(RenderPassCompatibilityError),
IncompatiblePipelineRods,
UsageConflict(UsageConflict),
DestroyedBuffer(BufferId),
MissingBufferUsage(MissingBufferUsageError),
MissingTextureUsage(MissingTextureUsageError),
PushConstants(PushConstantUploadError),
InvalidViewportDimension(f32, f32),
InvalidViewportDepth(f32, f32),
InvalidScissorRect(Rect<u32>, Extent3d),
Unimplemented(&'static str),
}Expand description
Error encountered when encoding a render command. This is the shared error set between render bundles and passes.
Variants
InvalidBindGroup(BindGroupId)
InvalidRenderBundle(RenderBundleId)
BindGroupIndexOutOfRange
UnalignedBufferOffset(u64, &'static str, u32)
InvalidDynamicOffsetCount
InvalidPipeline(RenderPipelineId)
InvalidQuerySet(QuerySetId)
IncompatiblePipelineTargets(RenderPassCompatibilityError)
IncompatiblePipelineRods
UsageConflict(UsageConflict)
DestroyedBuffer(BufferId)
MissingBufferUsage(MissingBufferUsageError)
MissingTextureUsage(MissingTextureUsageError)
PushConstants(PushConstantUploadError)
InvalidViewportDimension(f32, f32)
InvalidViewportDepth(f32, f32)
InvalidScissorRect(Rect<u32>, Extent3d)
Unimplemented(&'static str)
Trait Implementations
sourceimpl Clone for RenderCommandError
impl Clone for RenderCommandError
sourcefn clone(&self) -> RenderCommandError
fn clone(&self) -> RenderCommandError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RenderCommandError
impl Debug for RenderCommandError
sourceimpl Display for RenderCommandError
impl Display for RenderCommandError
sourceimpl Error for RenderCommandError
impl Error for RenderCommandError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<PushConstantUploadError> for RenderCommandError
impl From<PushConstantUploadError> for RenderCommandError
sourcefn from(source: PushConstantUploadError) -> Self
fn from(source: PushConstantUploadError) -> Self
Converts to this type from the input type.
sourceimpl From<RenderCommandError> for RenderPassErrorInner
impl From<RenderCommandError> for RenderPassErrorInner
sourcefn from(source: RenderCommandError) -> Self
fn from(source: RenderCommandError) -> Self
Converts to this type from the input type.
sourceimpl From<RenderPassCompatibilityError> for RenderCommandError
impl From<RenderPassCompatibilityError> for RenderCommandError
sourcefn from(source: RenderPassCompatibilityError) -> Self
fn from(source: RenderPassCompatibilityError) -> Self
Converts to this type from the input type.
sourceimpl PrettyError for RenderCommandError
impl PrettyError for RenderCommandError
fn fmt_pretty(&self, fmt: &mut ErrorFormatter<'_>)
Auto Trait Implementations
impl !RefUnwindSafe for RenderCommandError
impl Send for RenderCommandError
impl Sync for RenderCommandError
impl Unpin for RenderCommandError
impl !UnwindSafe for RenderCommandError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more