Enum vulkano::image::sys::ImageCreationError
source · pub enum ImageCreationError {
AllocError(DeviceMemoryAllocError),
InvalidMipmapsCount {
obtained: u32,
valid_range: Range<u32>,
},
UnsupportedSamplesCount {
obtained: u32,
},
UnsupportedDimensions {
dimensions: ImageDimensions,
},
FormatNotSupported,
UnsupportedUsage,
ShaderStorageImageMultisampleFeatureNotEnabled,
}
Expand description
Error that can happen when creating an instance.
Variants
AllocError(DeviceMemoryAllocError)
Allocating memory failed.
InvalidMipmapsCount
A wrong number of mipmaps was provided.
UnsupportedSamplesCount
Fields
obtained: u32
The requested number of samples is not supported, or is 0.
UnsupportedDimensions
Fields
dimensions: ImageDimensions
The dimensions are too large, or one of the dimensions is 0.
FormatNotSupported
The requested format is not supported by the Vulkan implementation.
UnsupportedUsage
The format is supported, but at least one of the requested usages is not supported.
ShaderStorageImageMultisampleFeatureNotEnabled
The shader_storage_image_multisample
feature must be enabled to create such an image.
Trait Implementations
sourceimpl Clone for ImageCreationError
impl Clone for ImageCreationError
sourcefn clone(&self) -> ImageCreationError
fn clone(&self) -> ImageCreationError
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 moresourceimpl Debug for ImageCreationError
impl Debug for ImageCreationError
sourceimpl Display for ImageCreationError
impl Display for ImageCreationError
sourceimpl Error for ImageCreationError
impl Error for ImageCreationError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<DeviceMemoryAllocError> for ImageCreationError
impl From<DeviceMemoryAllocError> for ImageCreationError
sourcefn from(err: DeviceMemoryAllocError) -> ImageCreationError
fn from(err: DeviceMemoryAllocError) -> ImageCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for ImageCreationError
impl From<OomError> for ImageCreationError
sourcefn from(err: OomError) -> ImageCreationError
fn from(err: OomError) -> ImageCreationError
Converts to this type from the input type.
sourceimpl PartialEq<ImageCreationError> for ImageCreationError
impl PartialEq<ImageCreationError> for ImageCreationError
sourcefn eq(&self, other: &ImageCreationError) -> bool
fn eq(&self, other: &ImageCreationError) -> bool
impl Eq for ImageCreationError
impl StructuralEq for ImageCreationError
impl StructuralPartialEq for ImageCreationError
Auto Trait Implementations
impl RefUnwindSafe for ImageCreationError
impl Send for ImageCreationError
impl Sync for ImageCreationError
impl Unpin for ImageCreationError
impl UnwindSafe for ImageCreationError
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.