pub enum ViewError {
Usage(Usage),
Level(u8),
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(u8)
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.
OutOfMemory(OutOfMemory)
Out of either Host or Device memory
Unsupported
The backend refused for some reason.
Trait Implementations§
Source§impl Error for ViewError
impl Error for ViewError
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<OutOfMemory> for ViewError
impl From<OutOfMemory> for ViewError
Source§fn from(error: OutOfMemory) -> ViewError
fn from(error: OutOfMemory) -> ViewError
Converts to this type from the input type.
impl StructuralPartialEq for ViewError
Auto Trait Implementations§
impl Freeze for ViewError
impl RefUnwindSafe for ViewError
impl Send for ViewError
impl Sync for ViewError
impl Unpin for ViewError
impl UnwindSafe for ViewError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)