logo
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

Fields

provided: u32
required: u32

The number of attachments doesn’t match the number expected by the render pass.

AttachmentExtentTooSmall

Fields

attachment: u32
provided: [u32; 2]
min: [u32; 2]

An attachment image has an extent smaller than the provided extent.

AttachmentFormatMismatch

Fields

attachment: u32
provided: Option<Format>
required: Option<Format>

An attachment image has a format different from what the render pass requires.

AttachmentMissingUsage

Fields

attachment: u32
usage: &'static str

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

Fields

attachment: u32
provided: u32
min: u32

An attachment image has less array layers than the provided layers.

AttachmentSamplesMismatch

Fields

attachment: u32
provided: SampleCount
required: SampleCount

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

Fields

provided: [u32; 2]
max: [u32; 2]

The provided extent exceeds the max_framebuffer_width or max_framebuffer_height limits.

MaxFramebufferLayersExceeded

Fields

provided: u32
max: u32

The provided layers exceeds the max_framebuffer_layers limit.

MultiviewAttachmentNotEnoughLayers

Fields

attachment: u32
provided: u32
min: u32

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.