#[non_exhaustive]pub enum FramebufferError {
CannotCreate,
TextureError(TextureError),
Incomplete(IncompleteReason),
UnsupportedAttachment,
}Expand description
Framebuffer error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CannotCreate
Cannot create the framebuffer on the GPU.
TextureError(TextureError)
Texture error.
This happen while creating / associating the color / depth slots.
Incomplete(IncompleteReason)
Incomplete error.
This happens when finalizing the construction of the framebuffer.
UnsupportedAttachment
Cannot attach something to a framebuffer.
Implementations§
Source§impl FramebufferError
impl FramebufferError
Sourcepub fn cannot_create() -> FramebufferError
pub fn cannot_create() -> FramebufferError
Cannot create the framebuffer on the GPU.
Sourcepub fn texture_error(e: TextureError) -> FramebufferError
pub fn texture_error(e: TextureError) -> FramebufferError
Texture error.
Sourcepub fn incomplete(e: IncompleteReason) -> FramebufferError
pub fn incomplete(e: IncompleteReason) -> FramebufferError
Incomplete error.
Sourcepub fn unsupported_attachment() -> FramebufferError
pub fn unsupported_attachment() -> FramebufferError
Cannot attach something to a framebuffer.
Trait Implementations§
Source§impl Clone for FramebufferError
impl Clone for FramebufferError
Source§fn clone(&self) -> FramebufferError
fn clone(&self) -> FramebufferError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FramebufferError
impl Debug for FramebufferError
Source§impl Display for FramebufferError
impl Display for FramebufferError
Source§impl Error for FramebufferError
impl Error for FramebufferError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<IncompleteReason> for FramebufferError
impl From<IncompleteReason> for FramebufferError
Source§fn from(e: IncompleteReason) -> FramebufferError
fn from(e: IncompleteReason) -> FramebufferError
Converts to this type from the input type.
Source§impl From<TextureError> for FramebufferError
impl From<TextureError> for FramebufferError
Source§fn from(e: TextureError) -> FramebufferError
fn from(e: TextureError) -> FramebufferError
Converts to this type from the input type.
Source§impl PartialEq for FramebufferError
impl PartialEq for FramebufferError
impl Eq for FramebufferError
impl StructuralPartialEq for FramebufferError
Auto Trait Implementations§
impl Freeze for FramebufferError
impl RefUnwindSafe for FramebufferError
impl Send for FramebufferError
impl Sync for FramebufferError
impl Unpin for FramebufferError
impl UnwindSafe for FramebufferError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more