pub enum FramebufferCreationError {
OomError(OomError),
DimensionsTooLarge,
AttachmentDimensionsIncompatible {
expected: [u32; 3],
obtained: [u32; 3],
},
AttachmentsCountMismatch {
expected: usize,
obtained: usize,
},
IncompatibleAttachment(IncompatibleRenderPassAttachmentError),
CantDetermineDimensions,
}
Expand description
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.
AttachmentsCountMismatch
Fields
expected: usize
Expected number of attachments.
obtained: usize
Number of attachments that were given.
The number of attachments doesn’t match the number expected by the render pass.
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
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 moresourceimpl Debug for FramebufferCreationError
impl Debug for FramebufferCreationError
sourceimpl Display for FramebufferCreationError
impl Display for FramebufferCreationError
sourceimpl Error for FramebufferCreationError
impl Error for FramebufferCreationError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<OomError> for FramebufferCreationError
impl From<OomError> for FramebufferCreationError
sourcefn from(err: OomError) -> FramebufferCreationError
fn from(err: OomError) -> FramebufferCreationError
Converts to this type from the input type.
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 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.