#[non_exhaustive]pub enum AttachmentError {
Show 14 variants
InvalidDepthStencilAttachmentFormat(TextureFormat),
InvalidTransientDepthAttachmentOps((LoadOp<Option<f32>>, StoreOp)),
ReadOnlyTransientDepthAttachment,
InvalidTransientStencilAttachmentOps((LoadOp<Option<u32>>, StoreOp)),
ReadOnlyTransientStencilAttachment,
ReadOnlyWithLoad,
ReadOnlyWithStore,
DepthOpsWithoutAspect {
format: TextureFormat,
ops: (Option<LoadOp<Option<f32>>>, Option<StoreOp>),
},
StencilOpsWithoutAspect {
format: TextureFormat,
ops: (Option<LoadOp<Option<u32>>>, Option<StoreOp>),
},
NoLoad,
NoStore,
NoClearValue,
ClearValueOutOfRange(f32),
LoadOpDontCareUnderStrictWebgpuCompliance,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDepthStencilAttachmentFormat(TextureFormat)
InvalidTransientDepthAttachmentOps((LoadOp<Option<f32>>, StoreOp))
ReadOnlyTransientDepthAttachment
InvalidTransientStencilAttachmentOps((LoadOp<Option<u32>>, StoreOp))
ReadOnlyTransientStencilAttachment
ReadOnlyWithLoad
ReadOnlyWithStore
DepthOpsWithoutAspect
StencilOpsWithoutAspect
NoLoad
NoStore
NoClearValue
ClearValueOutOfRange(f32)
LoadOpDontCareUnderStrictWebgpuCompliance
Trait Implementations§
Source§impl Clone for AttachmentError
impl Clone for AttachmentError
Source§fn clone(&self) -> AttachmentError
fn clone(&self) -> AttachmentError
Returns a duplicate 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 AttachmentError
impl Debug for AttachmentError
Source§impl Display for AttachmentError
impl Display for AttachmentError
Source§impl Error for AttachmentError
impl Error for AttachmentError
1.30.0 · 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 WebGpuError for AttachmentError
impl WebGpuError for AttachmentError
Source§fn webgpu_error_type(&self) -> ErrorType
fn webgpu_error_type(&self) -> ErrorType
Determine the classification of this error as a WebGPU [
ErrorType].Auto Trait Implementations§
impl Freeze for AttachmentError
impl RefUnwindSafe for AttachmentError
impl Send for AttachmentError
impl Sync for AttachmentError
impl Unpin for AttachmentError
impl UnwindSafe for AttachmentError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more