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

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

Error that can happen when creating an instance.

Variants

OomError(OomError)

Not enough memory.

InvalidMipmapsCount

A wrong number of mipmaps was provided.

Fields

obtained: u32
valid_range: Range<u32>
UnsupportedSamplesCount

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

Fields

obtained: u32
UnsupportedDimensions

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

Fields

dimensions: Dimensions
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

impl Eq for ImageCreationError
[src]

impl PartialEq for ImageCreationError
[src]

fn eq(&self, __arg_0: &ImageCreationError) -> bool

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

fn ne(&self, __arg_0: &ImageCreationError) -> bool

This method tests for !=.

impl Debug for ImageCreationError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ImageCreationError
[src]

fn clone(&self) -> ImageCreationError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Error for ImageCreationError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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

impl Display for ImageCreationError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl From<OomError> for ImageCreationError
[src]

fn from(err: OomError) -> ImageCreationError

Performs the conversion.

impl From<Error> for ImageCreationError
[src]

fn from(err: Error) -> ImageCreationError

Performs the conversion.