pub enum RenderPassErrorInner {
Show 34 variants
Device(DeviceError),
ColorAttachment(ColorAttachmentError),
InvalidAttachment(AttachmentError),
EncoderState(EncoderStateError),
InvalidParentEncoder,
DebugGroupError(DebugGroupError),
UnsupportedResolveTargetFormat {
location: AttachmentErrorLocation,
format: TextureFormat,
},
InvalidTransientResolveTarget {
location: AttachmentErrorLocation,
},
MissingAttachments,
TextureViewIsNotRenderable {
location: AttachmentErrorLocation,
reason: TextureViewNotRenderableReason,
},
AttachmentsDimensionMismatch {
expected_location: AttachmentErrorLocation,
expected_extent: Extent3d,
actual_location: AttachmentErrorLocation,
actual_extent: Extent3d,
},
AttachmentSampleCountMismatch {
expected_location: AttachmentErrorLocation,
expected_samples: u32,
actual_location: AttachmentErrorLocation,
actual_samples: u32,
},
InvalidResolveSampleCounts {
location: AttachmentErrorLocation,
src: u32,
dst: u32,
},
MismatchedResolveTextureFormat {
location: AttachmentErrorLocation,
src: TextureFormat,
dst: TextureFormat,
},
InvalidDepthOps,
InvalidStencilOps,
MissingFeatures(MissingFeatures),
MissingDownlevelFlags(MissingDownlevelFlags),
IndirectCountBufferOverrun {
count_bytes: u64,
begin_count_offset: u64,
count_buffer_size: u64,
},
ResourceUsageCompatibility(ResourceUsageCompatibilityError),
IncompatibleBundleTargets(RenderPassCompatibilityError),
IncompatibleBundleReadOnlyDepthStencil {
pass_depth: bool,
pass_stencil: bool,
bundle_depth: bool,
bundle_stencil: bool,
},
RenderCommand(RenderCommandError),
Draw(DrawError),
Bind(BindError),
QueryUse(QueryUseError),
MultiViewMismatch,
MultiViewDimensionMismatch,
TooManyMultiviewViews,
MissingOcclusionQuerySet,
DestroyedResource(DestroyedResourceError),
PassEnded,
InvalidResource(InvalidResourceError),
TimestampWrites(TimestampWritesError),
}Expand description
Error encountered when performing a render pass.
Variants§
Device(DeviceError)
ColorAttachment(ColorAttachmentError)
InvalidAttachment(AttachmentError)
EncoderState(EncoderStateError)
InvalidParentEncoder
DebugGroupError(DebugGroupError)
UnsupportedResolveTargetFormat
InvalidTransientResolveTarget
Fields
§
location: AttachmentErrorLocationMissingAttachments
TextureViewIsNotRenderable
AttachmentsDimensionMismatch
AttachmentSampleCountMismatch
InvalidResolveSampleCounts
MismatchedResolveTextureFormat
InvalidDepthOps
InvalidStencilOps
MissingFeatures(MissingFeatures)
MissingDownlevelFlags(MissingDownlevelFlags)
IndirectCountBufferOverrun
ResourceUsageCompatibility(ResourceUsageCompatibilityError)
IncompatibleBundleTargets(RenderPassCompatibilityError)
IncompatibleBundleReadOnlyDepthStencil
RenderCommand(RenderCommandError)
Draw(DrawError)
Bind(BindError)
QueryUse(QueryUseError)
MultiViewMismatch
MultiViewDimensionMismatch
TooManyMultiviewViews
MissingOcclusionQuerySet
DestroyedResource(DestroyedResourceError)
PassEnded
InvalidResource(InvalidResourceError)
TimestampWrites(TimestampWritesError)
Trait Implementations§
Source§impl Clone for RenderPassErrorInner
impl Clone for RenderPassErrorInner
Source§impl Debug for RenderPassErrorInner
impl Debug for RenderPassErrorInner
Source§impl Display for RenderPassErrorInner
impl Display for RenderPassErrorInner
Source§impl Error for RenderPassErrorInner
impl Error for RenderPassErrorInner
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<AttachmentError> for RenderPassErrorInner
impl From<AttachmentError> for RenderPassErrorInner
Source§fn from(source: AttachmentError) -> Self
fn from(source: AttachmentError) -> Self
Converts to this type from the input type.
Source§impl From<BindError> for RenderPassErrorInner
impl From<BindError> for RenderPassErrorInner
Source§impl From<ColorAttachmentError> for RenderPassErrorInner
impl From<ColorAttachmentError> for RenderPassErrorInner
Source§fn from(source: ColorAttachmentError) -> Self
fn from(source: ColorAttachmentError) -> Self
Converts to this type from the input type.
Source§impl From<DebugGroupError> for RenderPassErrorInner
impl From<DebugGroupError> for RenderPassErrorInner
Source§fn from(source: DebugGroupError) -> Self
fn from(source: DebugGroupError) -> Self
Converts to this type from the input type.
Source§impl From<DestroyedResourceError> for RenderPassErrorInner
impl From<DestroyedResourceError> for RenderPassErrorInner
Source§fn from(source: DestroyedResourceError) -> Self
fn from(source: DestroyedResourceError) -> Self
Converts to this type from the input type.
Source§impl From<DeviceError> for RenderPassErrorInner
impl From<DeviceError> for RenderPassErrorInner
Source§fn from(source: DeviceError) -> Self
fn from(source: DeviceError) -> Self
Converts to this type from the input type.
Source§impl From<DrawError> for RenderPassErrorInner
impl From<DrawError> for RenderPassErrorInner
Source§impl From<EncoderStateError> for RenderPassErrorInner
impl From<EncoderStateError> for RenderPassErrorInner
Source§fn from(source: EncoderStateError) -> Self
fn from(source: EncoderStateError) -> Self
Converts to this type from the input type.
Source§impl From<ImmediateUploadError> for RenderPassErrorInner
impl From<ImmediateUploadError> for RenderPassErrorInner
Source§fn from(error: ImmediateUploadError) -> Self
fn from(error: ImmediateUploadError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidOrDestroyedResourceError> for RenderPassErrorInner
impl From<InvalidOrDestroyedResourceError> for RenderPassErrorInner
Source§fn from(error: InvalidOrDestroyedResourceError) -> Self
fn from(error: InvalidOrDestroyedResourceError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidResourceError> for RenderPassErrorInner
impl From<InvalidResourceError> for RenderPassErrorInner
Source§fn from(source: InvalidResourceError) -> Self
fn from(source: InvalidResourceError) -> Self
Converts to this type from the input type.
Source§impl From<MissingBufferUsageError> for RenderPassErrorInner
impl From<MissingBufferUsageError> for RenderPassErrorInner
Source§fn from(error: MissingBufferUsageError) -> Self
fn from(error: MissingBufferUsageError) -> Self
Converts to this type from the input type.
Source§impl From<MissingDownlevelFlags> for RenderPassErrorInner
impl From<MissingDownlevelFlags> for RenderPassErrorInner
Source§fn from(source: MissingDownlevelFlags) -> Self
fn from(source: MissingDownlevelFlags) -> Self
Converts to this type from the input type.
Source§impl From<MissingFeatures> for RenderPassErrorInner
impl From<MissingFeatures> for RenderPassErrorInner
Source§fn from(source: MissingFeatures) -> Self
fn from(source: MissingFeatures) -> Self
Converts to this type from the input type.
Source§impl From<MissingTextureUsageError> for RenderPassErrorInner
impl From<MissingTextureUsageError> for RenderPassErrorInner
Source§fn from(error: MissingTextureUsageError) -> Self
fn from(error: MissingTextureUsageError) -> Self
Converts to this type from the input type.
Source§impl From<QueryUseError> for RenderPassErrorInner
impl From<QueryUseError> for RenderPassErrorInner
Source§fn from(source: QueryUseError) -> Self
fn from(source: QueryUseError) -> 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 RenderPassErrorInner
impl From<RenderPassCompatibilityError> for RenderPassErrorInner
Source§fn from(source: RenderPassCompatibilityError) -> Self
fn from(source: RenderPassCompatibilityError) -> Self
Converts to this type from the input type.
Source§impl From<TimestampWritesError> for RenderPassErrorInner
impl From<TimestampWritesError> for RenderPassErrorInner
Source§fn from(source: TimestampWritesError) -> Self
fn from(source: TimestampWritesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderPassErrorInner
impl !UnwindSafe for RenderPassErrorInner
impl Forget for RenderPassErrorInner
impl Freeze for RenderPassErrorInnerwhere
*const DeviceMismatch is !null: Freeze,
PhantomData<DeviceMismatch>: Freeze,
&'static str: Freeze,
String: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Option<TextureFormat>>: Freeze,
NonZero<u32>: Freeze,
InternalBitFlags: Freeze,
InternalBitFlags: Freeze,
*const BinderError is !null: Freeze,
PhantomData<BinderError>: Freeze,
impl Move for RenderPassErrorInner
impl Send for RenderPassErrorInnerwhere
BoxRaw<DeviceMismatch>: Send,
&'static str: Send,
String: Send,
RawVecInner: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
NonZero<u32>: Send,
InternalBitFlags: Send,
InternalBitFlags: Send,
BoxRaw<BinderError>: Send,
impl Sync for RenderPassErrorInnerwhere
BoxRaw<DeviceMismatch>: Sync,
String: Sync,
RawVecInner: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
NonZero<u32>: Sync,
InternalBitFlags: Sync,
InternalBitFlags: Sync,
BoxRaw<BinderError>: Sync,
impl Unpin for RenderPassErrorInnerwhere
Box<DeviceMismatch>: Unpin,
&'static str: Unpin,
String: Unpin,
*const u8 is !null: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
NonZero<u32>: Unpin,
InternalBitFlags: Unpin,
InternalBitFlags: Unpin,
Box<BinderError>: Unpin,
impl UnsafeUnpin for RenderPassErrorInnerwhere
*const DeviceMismatch is !null: UnsafeUnpin,
PhantomData<DeviceMismatch>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Option<TextureFormat>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
*const BinderError is !null: UnsafeUnpin,
PhantomData<BinderError>: UnsafeUnpin,
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