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

pub enum ImageCreationError {
    AllocError(DeviceMemoryAllocError),
    CreationFlagRequirementsNotMet,
    FormatNotSupported,
    InvalidMipmapsCount {
        obtained: u32,
        valid_range: Range<u32>,
    },
    UnsupportedSamplesCount {
        obtained: u32,
    },
    UnsupportedDimensions {
        dimensions: ImageDimensions,
    },
    UnsupportedUsage,
    ShaderStorageImageMultisampleFeatureNotEnabled,
}

Error that can happen when creating an instance.

Variants

Allocating memory failed.

CreationFlagRequirementsNotMet

The specified creation flags have requirements (e.g. specific dimension) that were not met.

FormatNotSupported

A wrong number of mipmaps was provided.

InvalidMipmapsCount

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

Fields of InvalidMipmapsCount

obtained: u32valid_range: Range<u32>
UnsupportedSamplesCount

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

Fields of UnsupportedSamplesCount

obtained: u32
UnsupportedDimensions

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

Fields of UnsupportedDimensions

dimensions: ImageDimensions
UnsupportedUsage

The requested format is not supported by the Vulkan implementation.

ShaderStorageImageMultisampleFeatureNotEnabled

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

Trait Implementations

impl Clone for ImageCreationError[src]

impl Debug for ImageCreationError[src]

impl Display for ImageCreationError[src]

impl Eq for ImageCreationError[src]

impl Error for ImageCreationError[src]

impl From<DeviceMemoryAllocError> for ImageCreationError[src]

impl From<OomError> for ImageCreationError[src]

impl PartialEq<ImageCreationError> for ImageCreationError[src]

impl StructuralEq for ImageCreationError[src]

impl StructuralPartialEq for ImageCreationError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.