pub enum ImageViewCreationError {
Show 24 variants
OomError(OomError),
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
Array2dCompatibleMultipleMipLevels,
ArrayLayersOutOfRange {
range_end: u32,
max: u32,
},
BlockTexelViewCompatibleMultipleArrayLayers,
BlockTexelViewCompatibleMultipleMipLevels,
FormatChromaSubsamplingInvalidImageDimensions,
FormatNotCompatible,
FormatNotSupported,
FormatRequiresSamplerYcbcrConversion {
format: Format,
},
FormatUsageNotSupported {
usage: &'static str,
},
ImageAspectsNotCompatible {
aspects: ImageAspects,
image_aspects: ImageAspects,
},
ImageMissingUsage,
ImageNotArray2dCompatible,
ImageNotCubeCompatible,
ImageTypeNotCompatible,
IncompatibleType,
MipLevelsOutOfRange {
range_end: u32,
max: u32,
},
MultisamplingNot2d,
SamplerYcbcrConversionComponentMappingNotIdentity {
component_mapping: ComponentMapping,
},
TypeCubeArrayNotMultipleOf6ArrayLayers,
TypeCubeNot6ArrayLayers,
TypeNonArrayedMultipleArrayLayers,
UsageNotSupportedByImage {
usage: ImageUsage,
supported_usage: ImageUsage,
},
}
Expand description
Error that can happen when creating an image view.
Variants
OomError(OomError)
Allocating memory failed.
RequirementNotMet
Array2dCompatibleMultipleMipLevels
A 2D image view was requested from a 3D image, but a range of multiple mip levels was specified.
ArrayLayersOutOfRange
The specified range of array layers was not a subset of those in the image.
BlockTexelViewCompatibleMultipleArrayLayers
The image has the block_texel_view_compatible
flag, but a range of multiple array layers
was specified.
BlockTexelViewCompatibleMultipleMipLevels
The image has the block_texel_view_compatible
flag, but a range of multiple mip levels
was specified.
FormatChromaSubsamplingInvalidImageDimensions
The requested format has chroma subsampling, but the width and/or height of the image was not a multiple of 2.
FormatNotCompatible
The requested format was not compatible with the image.
FormatNotSupported
The given format was not supported by the device.
FormatRequiresSamplerYcbcrConversion
Fields
format: Format
The format requires a sampler YCbCr conversion, but none was provided.
FormatUsageNotSupported
Fields
usage: &'static str
A requested usage flag was not supported by the given format.
ImageAspectsNotCompatible
An aspect was selected that was not present in the image.
ImageMissingUsage
The image was not created with one of the required usages for image views.
ImageNotArray2dCompatible
A 2D image view was requested from a 3D image, but the image was not created with the
array_2d_compatible
flag.
ImageNotCubeCompatible
A cube image view type was requested, but the image was not created with the
cube_compatible
flag.
ImageTypeNotCompatible
The given image view type was not compatible with the type of the image.
IncompatibleType
The requested ImageViewType
was not compatible with the image, or with the specified
ranges of array layers and mipmap levels.
MipLevelsOutOfRange
The specified range of mip levels was not a subset of those in the image.
MultisamplingNot2d
The image has multisampling enabled, but the image view type was not Dim2d
or
Dim2dArray
.
SamplerYcbcrConversionComponentMappingNotIdentity
Fields
component_mapping: ComponentMapping
Sampler YCbCr conversion was enabled, but component_mapping
was not the identity mapping.
TypeCubeArrayNotMultipleOf6ArrayLayers
The CubeArray
image view type was specified, but the range of array layers did not have a
size that is a multiple 6.
TypeCubeNot6ArrayLayers
The Cube
image view type was specified, but the range of array layers did not have a size
of 6.
TypeNonArrayedMultipleArrayLayers
A non-arrayed image view type was specified, but a range of multiple array layers was specified.
UsageNotSupportedByImage
The provided usage
is not supported by the parent image.
Trait Implementations
sourceimpl Clone for ImageViewCreationError
impl Clone for ImageViewCreationError
sourcefn clone(&self) -> ImageViewCreationError
fn clone(&self) -> ImageViewCreationError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more