pub enum ComputePassErrorInner {
Show 21 variants
Device(DeviceError),
Encoder(CommandEncoderError),
InvalidParentEncoder,
BindGroupIndexOutOfRange {
index: u32,
max: u32,
},
DestroyedResource(DestroyedResourceError),
UnalignedIndirectBufferOffset(BufferAddress),
IndirectBufferOverrun {
offset: u64,
end_offset: u64,
buffer_size: u64,
},
ResourceUsageCompatibility(ResourceUsageCompatibilityError),
MissingBufferUsage(MissingBufferUsageError),
InvalidPopDebugGroup,
Dispatch(DispatchError),
Bind(BindError),
PushConstants(PushConstantUploadError),
PushConstantOffsetAlignment,
PushConstantSizeAlignment,
PushConstantOutOfMemory,
QueryUse(QueryUseError),
MissingFeatures(MissingFeatures),
MissingDownlevelFlags(MissingDownlevelFlags),
PassEnded,
InvalidResource(InvalidResourceError),
}
Expand description
Error encountered when performing a compute pass.
Variants§
Device(DeviceError)
Encoder(CommandEncoderError)
InvalidParentEncoder
BindGroupIndexOutOfRange
DestroyedResource(DestroyedResourceError)
UnalignedIndirectBufferOffset(BufferAddress)
IndirectBufferOverrun
ResourceUsageCompatibility(ResourceUsageCompatibilityError)
MissingBufferUsage(MissingBufferUsageError)
InvalidPopDebugGroup
Dispatch(DispatchError)
Bind(BindError)
PushConstants(PushConstantUploadError)
PushConstantOffsetAlignment
PushConstantSizeAlignment
PushConstantOutOfMemory
QueryUse(QueryUseError)
MissingFeatures(MissingFeatures)
MissingDownlevelFlags(MissingDownlevelFlags)
PassEnded
InvalidResource(InvalidResourceError)
Trait Implementations§
Source§impl Clone for ComputePassErrorInner
impl Clone for ComputePassErrorInner
Source§fn clone(&self) -> ComputePassErrorInner
fn clone(&self) -> ComputePassErrorInner
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 ComputePassErrorInner
impl Debug for ComputePassErrorInner
Source§impl Display for ComputePassErrorInner
impl Display for ComputePassErrorInner
Source§impl Error for ComputePassErrorInner
impl Error for ComputePassErrorInner
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<BindError> for ComputePassErrorInner
impl From<BindError> for ComputePassErrorInner
Source§impl From<CommandEncoderError> for ComputePassErrorInner
impl From<CommandEncoderError> for ComputePassErrorInner
Source§fn from(source: CommandEncoderError) -> Self
fn from(source: CommandEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<DestroyedResourceError> for ComputePassErrorInner
impl From<DestroyedResourceError> for ComputePassErrorInner
Source§fn from(source: DestroyedResourceError) -> Self
fn from(source: DestroyedResourceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for ComputePassErrorInner
impl From<DeviceError> for ComputePassErrorInner
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DispatchError> for ComputePassErrorInner
impl From<DispatchError> for ComputePassErrorInner
Source§fn from(source: DispatchError) -> Self
fn from(source: DispatchError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidResourceError> for ComputePassErrorInner
impl From<InvalidResourceError> for ComputePassErrorInner
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingBufferUsageError> for ComputePassErrorInner
impl From<MissingBufferUsageError> for ComputePassErrorInner
Source§fn from(source: MissingBufferUsageError) -> Self
fn from(source: MissingBufferUsageError) -> Self
Converts to this type from the input type.
Source§impl From<MissingDownlevelFlags> for ComputePassErrorInner
impl From<MissingDownlevelFlags> for ComputePassErrorInner
Source§fn from(source: MissingDownlevelFlags) -> Self
fn from(source: MissingDownlevelFlags) -> Self
Converts to this type from the input type.
Source§impl From<MissingFeatures> for ComputePassErrorInner
impl From<MissingFeatures> for ComputePassErrorInner
Source§fn from(source: MissingFeatures) -> Self
fn from(source: MissingFeatures) -> Self
Converts to this type from the input type.
Source§impl From<PushConstantUploadError> for ComputePassErrorInner
impl From<PushConstantUploadError> for ComputePassErrorInner
Source§fn from(source: PushConstantUploadError) -> Self
fn from(source: PushConstantUploadError) -> Self
Converts to this type from the input type.
Source§impl From<QueryUseError> for ComputePassErrorInner
impl From<QueryUseError> for ComputePassErrorInner
Source§fn from(source: QueryUseError) -> Self
fn from(source: QueryUseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComputePassErrorInner
impl !RefUnwindSafe for ComputePassErrorInner
impl Send for ComputePassErrorInner
impl Sync for ComputePassErrorInner
impl Unpin for ComputePassErrorInner
impl !UnwindSafe for ComputePassErrorInner
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