[][src]Enum vulkano::image::sys::ImageCreationError

pub enum ImageCreationError {
    InvalidMipmapsCount {
        obtained: u32,
        valid_range: Range<u32>,
    UnsupportedSamplesCount {
        obtained: u32,
    UnsupportedDimensions {
        dimensions: ImageDimensions,

Error that can happen when creating an instance.


Allocating memory failed.


A wrong number of mipmaps was provided.

Fields of InvalidMipmapsCount

obtained: u32valid_range: Range<u32>

The requested number of samples is not supported, or is 0.

Fields of UnsupportedSamplesCount

obtained: u32

The dimensions are too large, or one of the dimensions is 0.

Fields of UnsupportedDimensions

dimensions: ImageDimensions

The requested format is not supported by the Vulkan implementation.


The format is supported, but at least one of the requested usages is not supported.


The shader_storage_image_multisample feature must be enabled to create such an image.

Trait Implementations

impl From<OomError> for ImageCreationError[src]

impl From<DeviceMemoryAllocError> for ImageCreationError[src]

impl Clone for ImageCreationError[src]

impl Eq for ImageCreationError[src]

impl PartialEq<ImageCreationError> for ImageCreationError[src]

impl Display for ImageCreationError[src]

impl Debug for ImageCreationError[src]

impl StructuralPartialEq for ImageCreationError[src]

impl StructuralEq for ImageCreationError[src]

impl Error for ImageCreationError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized