pub enum ViewCreationError {
OutOfMemory(OutOfMemory),
Usage(Usage),
Level(Level),
Layer(LayerError),
BadFormat(Format),
BadKind(ViewKind),
Unsupported,
}
Expand description
Error creating an ImageView
.
Variants§
OutOfMemory(OutOfMemory)
Out of either Host or Device memory
Usage(Usage)
The required usage flag is not present in the image.
Level(Level)
Selected mip level doesn’t exist.
Layer(LayerError)
Selected array layer doesn’t exist.
BadFormat(Format)
An incompatible format was requested for the view.
BadKind(ViewKind)
An incompatible view kind was requested for the view.
Unsupported
The backend refused for some reason.
Trait Implementations§
Source§impl Clone for ViewCreationError
impl Clone for ViewCreationError
Source§fn clone(&self) -> ViewCreationError
fn clone(&self) -> ViewCreationError
Returns a copy 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 ViewCreationError
impl Debug for ViewCreationError
Source§impl Display for ViewCreationError
impl Display for ViewCreationError
Source§impl Error for ViewCreationError
impl Error for ViewCreationError
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<LayerError> for ViewCreationError
impl From<LayerError> for ViewCreationError
Source§fn from(source: LayerError) -> Self
fn from(source: LayerError) -> Self
Converts to this type from the input type.
Source§impl From<OutOfMemory> for ViewCreationError
impl From<OutOfMemory> for ViewCreationError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ViewCreationError
impl PartialEq for ViewCreationError
impl StructuralPartialEq for ViewCreationError
Auto Trait Implementations§
impl Freeze for ViewCreationError
impl RefUnwindSafe for ViewCreationError
impl Send for ViewCreationError
impl Sync for ViewCreationError
impl Unpin for ViewCreationError
impl UnwindSafe for ViewCreationError
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