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

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

Error that can happen when creating an instance.

Variants

Allocating memory failed.

A wrong number of mipmaps was provided.

Fields of InvalidMipmapsCount

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

Fields of UnsupportedSamplesCount

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

Fields of UnsupportedDimensions

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 Clone for ImageCreationError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ImageCreationError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ImageCreationError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for ImageCreationError
[src]

impl Error for ImageCreationError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for ImageCreationError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<OomError> for ImageCreationError
[src]

[src]

Performs the conversion.

impl From<DeviceMemoryAllocError> for ImageCreationError
[src]

[src]

Performs the conversion.

impl From<Error> for ImageCreationError
[src]

[src]

Performs the conversion.