Enum vulkano::VulkanError
source · #[non_exhaustive]#[repr(i32)]pub enum VulkanError {
Show 37 variants
NotReady,
Timeout,
OutOfHostMemory,
OutOfDeviceMemory,
InitializationFailed,
DeviceLost,
MemoryMapFailed,
LayerNotPresent,
ExtensionNotPresent,
FeatureNotPresent,
IncompatibleDriver,
TooManyObjects,
FormatNotSupported,
FragmentedPool,
Unknown,
OutOfPoolMemory,
InvalidExternalHandle,
Fragmentation,
InvalidOpaqueCaptureAddress,
IncompatibleDisplay,
NotPermitted,
SurfaceLost,
NativeWindowInUse,
OutOfDate,
InvalidVideoStdParameters,
ImageUsageNotSupported,
VideoPictureLayoutNotSupported,
VideoProfileOperationNotSupported,
VideoProfileFormatNotSupported,
VideoProfileCodecNotSupported,
VideoStdVersionNotSupported,
ValidationFailed,
FullScreenExclusiveModeLost,
CompressionExhausted,
InvalidDrmFormatModifierPlaneLayout,
InvalidShader,
Unnamed(Result),
}
Expand description
An enumeration of runtime errors that can be returned by Vulkan.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotReady
Timeout
OutOfHostMemory
OutOfDeviceMemory
InitializationFailed
DeviceLost
MemoryMapFailed
LayerNotPresent
ExtensionNotPresent
FeatureNotPresent
IncompatibleDriver
TooManyObjects
FormatNotSupported
FragmentedPool
Unknown
OutOfPoolMemory
InvalidExternalHandle
Fragmentation
InvalidOpaqueCaptureAddress
IncompatibleDisplay
NotPermitted
SurfaceLost
NativeWindowInUse
OutOfDate
InvalidVideoStdParameters
ImageUsageNotSupported
VideoPictureLayoutNotSupported
VideoProfileOperationNotSupported
VideoProfileFormatNotSupported
VideoProfileCodecNotSupported
VideoStdVersionNotSupported
ValidationFailed
FullScreenExclusiveModeLost
CompressionExhausted
InvalidDrmFormatModifierPlaneLayout
InvalidShader
Unnamed(Result)
Trait Implementations§
source§impl Clone for VulkanError
impl Clone for VulkanError
source§fn clone(&self) -> VulkanError
fn clone(&self) -> VulkanError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VulkanError
impl Debug for VulkanError
source§impl Display for VulkanError
impl Display for VulkanError
source§impl Error for VulkanError
impl Error for VulkanError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Result> for VulkanError
impl From<Result> for VulkanError
source§fn from(val: Result) -> VulkanError
fn from(val: Result) -> VulkanError
Converts to this type from the input type.
source§impl From<VulkanError> for LoadingError
impl From<VulkanError> for LoadingError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for ResetCommandPoolError
impl From<VulkanError> for ResetCommandPoolError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for Validated<VulkanError>
impl From<VulkanError> for Validated<VulkanError>
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl Hash for VulkanError
impl Hash for VulkanError
source§impl PartialEq for VulkanError
impl PartialEq for VulkanError
source§fn eq(&self, other: &VulkanError) -> bool
fn eq(&self, other: &VulkanError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VulkanError
impl Eq for VulkanError
impl StructuralEq for VulkanError
impl StructuralPartialEq for VulkanError
Auto Trait Implementations§
impl RefUnwindSafe for VulkanError
impl Send for VulkanError
impl Sync for VulkanError
impl Unpin for VulkanError
impl UnwindSafe for VulkanError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more