#[non_exhaustive]pub enum AttachmentError {
InvalidDepthStencilAttachmentFormat(TextureFormat),
ReadOnlyWithLoad,
ReadOnlyWithStore,
NoLoad,
NoStore,
NoClearValue,
ClearValueOutOfRange(f32),
}
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)
ReadOnlyWithLoad
ReadOnlyWithStore
NoLoad
NoStore
NoClearValue
ClearValueOutOfRange(f32)
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