Enum vulkano::framebuffer::FramebufferCreationError
[−]
[src]
pub enum FramebufferCreationError { OomError(OomError), DimensionsTooLarge, AttachmentDimensionsIncompatible { expected: [u32; 3], obtained: [u32; 3], }, AttachmentsCountMismatch { expected: usize, obtained: usize, }, IncompatibleAttachment(IncompatibleRenderPassAttachmentError), CantDetermineDimensions, }
Error that can happen when creating a framebuffer object.
Variants
OomError(OomError)
Out of memory.
DimensionsTooLarge
The requested dimensions exceed the device's limits.
AttachmentDimensionsIncompatible
The attachment has a size that isn't compatible with the requested framebuffer dimensions.
Fields of AttachmentDimensionsIncompatible
expected: [u32; 3] | Expected dimensions. |
obtained: [u32; 3] | Attachment dimensions. |
AttachmentsCountMismatch
The number of attachments doesn't match the number expected by the render pass.
Fields of AttachmentsCountMismatch
expected: usize | Expected number of attachments. |
obtained: usize | Number of attachments that were given. |
IncompatibleAttachment(IncompatibleRenderPassAttachmentError)
One of the images cannot be used as the requested attachment.
CantDetermineDimensions
The framebuffer has no attachment and no dimension was specified.
Trait Implementations
impl Copy for FramebufferCreationError
[src]
impl Clone for FramebufferCreationError
[src]
fn clone(&self) -> FramebufferCreationError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for FramebufferCreationError
[src]
impl From<OomError> for FramebufferCreationError
[src]
fn from(err: OomError) -> FramebufferCreationError
Performs the conversion.
impl Error for FramebufferCreationError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for FramebufferCreationError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Error> for FramebufferCreationError
[src]
fn from(err: Error) -> FramebufferCreationError
Performs the conversion.