pub enum IncompatibleRenderPassAttachmentError {
FormatMismatch {
expected: Format,
obtained: Format,
},
SamplesMismatch {
expected: u32,
obtained: u32,
},
NotIdentitySwizzled,
MissingColorAttachmentUsage,
MissingDepthStencilAttachmentUsage,
MissingInputAttachmentUsage,
}
Expand description
Error that can happen when an image is not compatible with a render pass attachment slot.
Variants
FormatMismatch
The image format expected by the render pass doesn’t match the actual format of the image.
SamplesMismatch
Fields
expected: u32
Number of samples expected by the render pass.
obtained: u32
Number of samples of the image.
The number of samples expected by the render pass doesn’t match the number of samples of the image.
NotIdentitySwizzled
The image view has a component swizzle that is different from identity.
MissingColorAttachmentUsage
The image is used as a color attachment but is missing the color attachment usage.
MissingDepthStencilAttachmentUsage
The image is used as a depth/stencil attachment but is missing the depth-stencil attachment usage.
MissingInputAttachmentUsage
The image is used as an input attachment but is missing the input attachment usage.
Trait Implementations
sourceimpl Clone for IncompatibleRenderPassAttachmentError
impl Clone for IncompatibleRenderPassAttachmentError
sourcefn clone(&self) -> IncompatibleRenderPassAttachmentError
fn clone(&self) -> IncompatibleRenderPassAttachmentError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Error for IncompatibleRenderPassAttachmentError
impl Error for IncompatibleRenderPassAttachmentError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
impl Copy for IncompatibleRenderPassAttachmentError
Auto Trait Implementations
impl RefUnwindSafe for IncompatibleRenderPassAttachmentError
impl Send for IncompatibleRenderPassAttachmentError
impl Sync for IncompatibleRenderPassAttachmentError
impl Unpin for IncompatibleRenderPassAttachmentError
impl UnwindSafe for IncompatibleRenderPassAttachmentError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.