#[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
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
sourceimpl 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
sourceimpl Clone for FramebufferError
impl Clone for FramebufferError
sourcefn clone(&self) -> FramebufferError
fn clone(&self) -> FramebufferError
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 more
sourceimpl Debug for FramebufferError
impl Debug for FramebufferError
sourceimpl Display for FramebufferError
impl Display for FramebufferError
sourceimpl Error for FramebufferError
impl Error for FramebufferError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<IncompleteReason> for FramebufferError
impl From<IncompleteReason> for FramebufferError
sourcefn from(e: IncompleteReason) -> FramebufferError
fn from(e: IncompleteReason) -> FramebufferError
Converts to this type from the input type.
sourceimpl From<TextureError> for FramebufferError
impl From<TextureError> for FramebufferError
sourcefn from(e: TextureError) -> FramebufferError
fn from(e: TextureError) -> FramebufferError
Converts to this type from the input type.
sourceimpl PartialEq<FramebufferError> for FramebufferError
impl PartialEq<FramebufferError> for FramebufferError
sourcefn eq(&self, other: &FramebufferError) -> bool
fn eq(&self, other: &FramebufferError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FramebufferError) -> bool
fn ne(&self, other: &FramebufferError) -> bool
This method tests for !=
.
impl Eq for FramebufferError
impl StructuralEq for FramebufferError
impl StructuralPartialEq for FramebufferError
Auto Trait Implementations
impl RefUnwindSafe for FramebufferError
impl Send for FramebufferError
impl Sync for FramebufferError
impl Unpin for FramebufferError
impl UnwindSafe for FramebufferError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more