Enum vulkano::swapchain::SwapchainCreationError
source · [−]pub enum SwapchainCreationError {
Show 18 variants
OomError(OomError),
DeviceLost,
SurfaceLost,
SurfaceInUse,
NativeWindowInUse,
ExtensionNotEnabled {
extension: &'static str,
reason: &'static str,
},
CompositeAlphaNotSupported {
provided: CompositeAlpha,
supported: SupportedCompositeAlpha,
},
FormatColorSpaceNotSupported,
ImageArrayLayersNotSupported {
provided: u32,
max_supported: u32,
},
ImageExtentNotSupported {
provided: [u32; 2],
min_supported: [u32; 2],
max_supported: [u32; 2],
},
ImageFormatPropertiesNotSupported,
ImageSharingInvalidQueueFamilyId {
id: u32,
},
ImageUsageNotSupported {
provided: ImageUsage,
supported: ImageUsage,
},
MinImageCountNotSupported {
provided: u32,
min_supported: u32,
max_supported: Option<u32>,
},
PresentModeNotSupported,
PreTransformNotSupported {
provided: SurfaceTransform,
supported: SupportedSurfaceTransforms,
},
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.
ExtensionNotEnabled
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.
ImageFormatPropertiesNotSupported
The provided image parameters are not supported as queried from image_format_properties
.
ImageSharingInvalidQueueFamilyId
Fields
id: u32
The provided image_sharing
was set to Concurrent
, but one of the specified queue family
ids was not valid.
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.
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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwapchainCreationError
impl Debug for SwapchainCreationError
sourceimpl Display for SwapchainCreationError
impl Display for SwapchainCreationError
sourceimpl Error for SwapchainCreationError
impl Error for SwapchainCreationError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<OomError> for SwapchainCreationError
impl From<OomError> for SwapchainCreationError
sourcefn from(err: OomError) -> SwapchainCreationError
fn from(err: OomError) -> SwapchainCreationError
Performs the conversion.
sourceimpl From<SurfacePropertiesError> for SwapchainCreationError
impl From<SurfacePropertiesError> for SwapchainCreationError
sourcefn from(err: SurfacePropertiesError) -> SwapchainCreationError
fn from(err: SurfacePropertiesError) -> SwapchainCreationError
Performs the conversion.
sourceimpl PartialEq<SwapchainCreationError> for SwapchainCreationError
impl PartialEq<SwapchainCreationError> for SwapchainCreationError
sourcefn eq(&self, other: &SwapchainCreationError) -> bool
fn eq(&self, other: &SwapchainCreationError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SwapchainCreationError) -> bool
fn ne(&self, other: &SwapchainCreationError) -> bool
This method tests for !=
.
impl Eq for SwapchainCreationError
impl StructuralEq for SwapchainCreationError
impl StructuralPartialEq for SwapchainCreationError
Auto Trait Implementations
impl RefUnwindSafe for SwapchainCreationError
impl Send for SwapchainCreationError
impl Sync for SwapchainCreationError
impl Unpin for SwapchainCreationError
impl UnwindSafe for SwapchainCreationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more