pub enum ViewError {
Usage(Usage),
Level(Level),
Layer(LayerError),
BadFormat(Format),
BadKind(ViewKind),
OutOfMemory(OutOfMemory),
Unsupported,
}
Expand description
Error creating an ImageView
.
Variants
Usage(Usage)
The required usage flag is not present in the image.
Level(Level)
Selected mip levels doesn’t exist.
Layer(LayerError)
Selected array layer doesn’t exist.
BadFormat(Format)
An incompatible format was requested for the view.
BadKind(ViewKind)
Unsupported view kind.
OutOfMemory(OutOfMemory)
Out of either Host or Device memory
Unsupported
The backend refused for some reason.
Trait Implementations
sourceimpl Fail for ViewError
impl Fail for ViewError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<OutOfMemory> for ViewError
impl From<OutOfMemory> for ViewError
sourcefn from(error: OutOfMemory) -> Self
fn from(error: OutOfMemory) -> Self
Converts to this type from the input type.
impl Eq for ViewError
impl StructuralEq for ViewError
impl StructuralPartialEq for ViewError
Auto Trait Implementations
impl RefUnwindSafe for ViewError
impl Send for ViewError
impl Sync for ViewError
impl Unpin for ViewError
impl UnwindSafe for ViewError
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