Enum wgpu_core::command::RenderCommandError
source · pub enum RenderCommandError {
Show 16 variants
InvalidBindGroup(BindGroupId),
InvalidRenderBundle(RenderBundleId),
BindGroupIndexOutOfRange {
index: u8,
max: u32,
},
UnalignedBufferOffset(u64),
InvalidDynamicOffsetCount {
actual: usize,
expected: usize,
},
InvalidPipeline(RenderPipelineId),
InvalidQuerySet(QuerySetId),
IncompatiblePipeline(RenderPassCompatibilityError),
IncompatibleReadOnlyDepthStencil,
Buffer(BufferId, BufferError),
DestroyedBuffer(BufferId),
MissingBufferUsage(MissingBufferUsageError),
MissingTextureUsage(MissingTextureUsageError),
PushConstants(PushConstantUploadError),
InvalidViewport,
InvalidScissorRect,
}
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)
InvalidDynamicOffsetCount
InvalidPipeline(RenderPipelineId)
InvalidQuerySet(QuerySetId)
IncompatiblePipeline(RenderPassCompatibilityError)
IncompatibleReadOnlyDepthStencil
Buffer(BufferId, BufferError)
DestroyedBuffer(BufferId)
MissingBufferUsage(MissingBufferUsageError)
MissingTextureUsage(MissingTextureUsageError)
PushConstants(PushConstantUploadError)
InvalidViewport
InvalidScissorRect
Trait Implementations§
source§impl Clone for RenderCommandError
impl Clone for RenderCommandError
source§fn clone(&self) -> RenderCommandError
fn clone(&self) -> RenderCommandError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RenderCommandError
impl Debug for RenderCommandError
source§impl Display for RenderCommandError
impl Display for RenderCommandError
source§impl Error for RenderCommandError
impl Error for RenderCommandError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<PushConstantUploadError> for RenderCommandError
impl From<PushConstantUploadError> for RenderCommandError
source§fn from(source: PushConstantUploadError) -> Self
fn from(source: PushConstantUploadError) -> Self
Converts to this type from the input type.
source§impl From<RenderCommandError> for RenderPassErrorInner
impl From<RenderCommandError> for RenderPassErrorInner
source§fn from(source: RenderCommandError) -> Self
fn from(source: RenderCommandError) -> Self
Converts to this type from the input type.
source§impl From<RenderPassCompatibilityError> for RenderCommandError
impl From<RenderPassCompatibilityError> for RenderCommandError
source§fn from(source: RenderPassCompatibilityError) -> Self
fn from(source: RenderPassCompatibilityError) -> Self
Converts to this type from the input type.