Enum vulkano::swapchain::SwapchainCreationError
source · [−]pub enum SwapchainCreationError {
Show 20 variants
OomError(OomError),
DeviceLost,
SurfaceLost,
SurfaceInUse,
NativeWindowInUse,
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
CompositeAlphaNotSupported {
provided: CompositeAlpha,
supported: SupportedCompositeAlpha,
},
FormatColorSpaceNotSupported,
ImageArrayLayersNotSupported {
provided: u32,
max_supported: u32,
},
ImageExtentNotSupported {
provided: [u32; 2],
min_supported: [u32; 2],
max_supported: [u32; 2],
},
ImageExtentZeroLengthDimensions,
ImageFormatPropertiesNotSupported,
ImageSharingQueueFamilyIndexOutOfRange {
queue_family_index: u32,
queue_family_count: u32,
},
ImageUsageNotSupported {
provided: ImageUsage,
supported: ImageUsage,
},
MinImageCountNotSupported {
provided: u32,
min_supported: u32,
max_supported: Option<u32>,
},
PresentModeNotSupported,
PreTransformNotSupported {
provided: SurfaceTransform,
supported: SupportedSurfaceTransforms,
},
SurfaceNotSupported,
SwapchainAlreadyRetired,
Win32MonitorInvalid,
}
Expand description
Error that can happen when creating a Swapchain
.
Variants
OomError(OomError)
Not enough memory.
DeviceLost
The device was lost.
SurfaceLost
The surface was lost.
SurfaceInUse
The surface is already used by another swapchain.
NativeWindowInUse
The window is already in use by another API.
RequirementNotMet
CompositeAlphaNotSupported
The provided composite_alpha
is not supported by the surface for this device.
FormatColorSpaceNotSupported
The provided format
and color_space
are not supported by the surface for this device.
ImageArrayLayersNotSupported
The provided image_array_layers
is greater than what is supported by the surface for this
device.
ImageExtentNotSupported
The provided image_extent
is not within the range supported by the surface for this
device.
ImageExtentZeroLengthDimensions
The provided image_extent
contained at least one dimension of zero length.
This is prohibited by VUID-VkSwapchainCreateInfoKHR-imageExtent-01689
which requires both the width and height be non-zero.
This error is distinct from ImageExtentNotSupported
because a surface’s minimum supported
length may not enforce this rule.
ImageFormatPropertiesNotSupported
The provided image parameters are not supported as queried from image_format_properties
.
ImageSharingQueueFamilyIndexOutOfRange
The provided image_sharing
was set to Concurrent
, but one of the specified queue family
indices was out of range.
ImageUsageNotSupported
The provided image_usage
has fields set that are not supported by the surface for this
device.
MinImageCountNotSupported
The provided min_image_count
is not within the range supported by the surface for this
device.
PresentModeNotSupported
The provided present_mode
is not supported by the surface for this device.
PreTransformNotSupported
The provided pre_transform
is not supported by the surface for this device.
SurfaceNotSupported
The provided surface
is not supported by any of the device’s queue families.
SwapchainAlreadyRetired
The swapchain has already been used to create a new one.
Win32MonitorInvalid
The win32_monitor
value was Some
when it must be None
or vice-versa.
Trait Implementations
sourceimpl Clone for SwapchainCreationError
impl Clone for SwapchainCreationError
sourcefn clone(&self) -> SwapchainCreationError
fn clone(&self) -> SwapchainCreationError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more