pub enum FramebufferCreationError {
Show 17 variants
OomError(OomError),
Attachment2dArrayCompatibleDepthStencil {
attachment: u32,
},
AttachmentComponentMappingNotIdentity {
attachment: u32,
},
AttachmentCountMismatch {
provided: u32,
required: u32,
},
AttachmentExtentTooSmall {
attachment: u32,
provided: [u32; 2],
min: [u32; 2],
},
AttachmentFormatMismatch {
attachment: u32,
provided: Option<Format>,
required: Option<Format>,
},
AttachmentMissingUsage {
attachment: u32,
usage: &'static str,
},
AttachmentMultipleMipLevels {
attachment: u32,
},
AttachmentNotEnoughLayers {
attachment: u32,
provided: u32,
min: u32,
},
AttachmentSamplesMismatch {
attachment: u32,
provided: SampleCount,
required: SampleCount,
},
AttachmentViewType3d {
attachment: u32,
},
AutoExtentAttachmentsEmpty,
AutoLayersAttachmentsEmpty,
MaxFramebufferExtentExceeded {
provided: [u32; 2],
max: [u32; 2],
},
MaxFramebufferLayersExceeded {
provided: u32,
max: u32,
},
MultiviewAttachmentNotEnoughLayers {
attachment: u32,
provided: u32,
min: u32,
},
MultiviewLayersInvalid,
}
Expand description
Error that can happen when creating a Framebuffer
.
Variants
OomError(OomError)
Out of memory.
Attachment2dArrayCompatibleDepthStencil
Fields
attachment: u32
An attachment image is a 2D image view created from a 3D image, and has a depth/stencil format.
AttachmentComponentMappingNotIdentity
Fields
attachment: u32
An attachment image has a non-identity component mapping.
AttachmentCountMismatch
The number of attachments doesn’t match the number expected by the render pass.
AttachmentExtentTooSmall
An attachment image has an extent smaller than the provided extent
.
AttachmentFormatMismatch
An attachment image has a format
different from what the render pass requires.
AttachmentMissingUsage
An attachment image is missing a usage that the render pass requires it to have.
AttachmentMultipleMipLevels
Fields
attachment: u32
An attachment image has multiple mip levels.
AttachmentNotEnoughLayers
An attachment image has less array layers than the provided layers
.
AttachmentSamplesMismatch
An attachment image has a samples
different from what the render pass requires.
AttachmentViewType3d
Fields
attachment: u32
An attachment image has a ty
of ImageViewType::Dim3d
.
AutoExtentAttachmentsEmpty
One of the elements of extent
is zero, but no attachment images were given to calculate
the extent from.
AutoLayersAttachmentsEmpty
layers
is zero, but no attachment images were given to calculate the number of layers
from.
MaxFramebufferExtentExceeded
The provided extent
exceeds the max_framebuffer_width
or max_framebuffer_height
limits.
MaxFramebufferLayersExceeded
The provided layers
exceeds the max_framebuffer_layers
limit.
MultiviewAttachmentNotEnoughLayers
The render pass has multiview enabled, and an attachment image has less layers than the number of views in the render pass.
MultiviewLayersInvalid
The render pass has multiview enabled, but layers
was not 0 or 1.
Trait Implementations
sourceimpl Clone for FramebufferCreationError
impl Clone for FramebufferCreationError
sourcefn clone(&self) -> FramebufferCreationError
fn clone(&self) -> FramebufferCreationError
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 more
sourceimpl Debug for FramebufferCreationError
impl Debug for FramebufferCreationError
sourceimpl Display for FramebufferCreationError
impl Display for FramebufferCreationError
sourceimpl Error for FramebufferCreationError
impl Error for FramebufferCreationError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<OomError> for FramebufferCreationError
impl From<OomError> for FramebufferCreationError
impl Copy for FramebufferCreationError
Auto Trait Implementations
impl RefUnwindSafe for FramebufferCreationError
impl Send for FramebufferCreationError
impl Sync for FramebufferCreationError
impl Unpin for FramebufferCreationError
impl UnwindSafe for FramebufferCreationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more