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
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more