Enum vulkano::VulkanError
source · #[repr(i32)]
#[non_exhaustive]
pub enum VulkanError {
Show 27 variants
OutOfHostMemory,
OutOfDeviceMemory,
InitializationFailed,
DeviceLost,
MemoryMapFailed,
LayerNotPresent,
ExtensionNotPresent,
FeatureNotPresent,
IncompatibleDriver,
TooManyObjects,
FormatNotSupported,
FragmentedPool,
Unknown,
OutOfPoolMemory,
InvalidExternalHandle,
Fragmentation,
InvalidOpaqueCaptureAddress,
IncompatibleDisplay,
NotPermitted,
SurfaceLost,
NativeWindowInUse,
OutOfDate,
ValidationFailed,
FullScreenExclusiveModeLost,
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.
OutOfHostMemory
OutOfDeviceMemory
InitializationFailed
DeviceLost
MemoryMapFailed
LayerNotPresent
ExtensionNotPresent
FeatureNotPresent
IncompatibleDriver
TooManyObjects
FormatNotSupported
FragmentedPool
Unknown
OutOfPoolMemory
InvalidExternalHandle
Fragmentation
InvalidOpaqueCaptureAddress
IncompatibleDisplay
NotPermitted
SurfaceLost
NativeWindowInUse
OutOfDate
ValidationFailed
FullScreenExclusiveModeLost
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 AcquireError
impl From<VulkanError> for AcquireError
source§fn from(err: VulkanError) -> AcquireError
fn from(err: VulkanError) -> AcquireError
Converts to this type from the input type.
source§impl From<VulkanError> for AllocationCreationError
impl From<VulkanError> for AllocationCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for BufferError
impl From<VulkanError> for BufferError
source§fn from(err: VulkanError) -> BufferError
fn from(err: VulkanError) -> BufferError
Converts to this type from the input type.
source§impl From<VulkanError> for BufferViewCreationError
impl From<VulkanError> for BufferViewCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for CommandPoolCreationError
impl From<VulkanError> for CommandPoolCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for CommandPoolTrimError
impl From<VulkanError> for CommandPoolTrimError
source§fn from(err: VulkanError) -> CommandPoolTrimError
fn from(err: VulkanError) -> CommandPoolTrimError
Converts to this type from the input type.
source§impl From<VulkanError> for ComputePipelineCreationError
impl From<VulkanError> for ComputePipelineCreationError
source§fn from(err: VulkanError) -> ComputePipelineCreationError
fn from(err: VulkanError) -> ComputePipelineCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for DebugUtilsMessengerCreationError
impl From<VulkanError> for DebugUtilsMessengerCreationError
source§fn from(err: VulkanError) -> DebugUtilsMessengerCreationError
fn from(err: VulkanError) -> DebugUtilsMessengerCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for DescriptorSetLayoutCreationError
impl From<VulkanError> for DescriptorSetLayoutCreationError
source§fn from(error: VulkanError) -> Self
fn from(error: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for DeviceCreationError
impl From<VulkanError> for DeviceCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for DeviceMemoryError
impl From<VulkanError> for DeviceMemoryError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for FenceError
impl From<VulkanError> for FenceError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for FlushError
impl From<VulkanError> for FlushError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for FramebufferCreationError
impl From<VulkanError> for FramebufferCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for FullScreenExclusiveError
impl From<VulkanError> for FullScreenExclusiveError
source§fn from(err: VulkanError) -> FullScreenExclusiveError
fn from(err: VulkanError) -> FullScreenExclusiveError
Converts to this type from the input type.
source§impl From<VulkanError> for GetResultsError
impl From<VulkanError> for GetResultsError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for GraphicsPipelineCreationError
impl From<VulkanError> for GraphicsPipelineCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for ImageError
impl From<VulkanError> for ImageError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for ImageViewCreationError
impl From<VulkanError> for ImageViewCreationError
source§fn from(err: VulkanError) -> ImageViewCreationError
fn from(err: VulkanError) -> ImageViewCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for ImmutableImageCreationError
impl From<VulkanError> for ImmutableImageCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for InstanceCreationError
impl From<VulkanError> for InstanceCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
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 MemoryFdPropertiesError
impl From<VulkanError> for MemoryFdPropertiesError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for MemoryMapError
impl From<VulkanError> for MemoryMapError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for OomError
impl From<VulkanError> for OomError
source§fn from(err: VulkanError) -> OomError
fn from(err: VulkanError) -> OomError
Converts to this type from the input type.
source§impl From<VulkanError> for PhysicalDeviceError
impl From<VulkanError> for PhysicalDeviceError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for PipelineLayoutCreationError
impl From<VulkanError> for PipelineLayoutCreationError
source§fn from(err: VulkanError) -> PipelineLayoutCreationError
fn from(err: VulkanError) -> PipelineLayoutCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for PresentWaitError
impl From<VulkanError> for PresentWaitError
source§fn from(err: VulkanError) -> PresentWaitError
fn from(err: VulkanError) -> PresentWaitError
Converts to this type from the input type.
source§impl From<VulkanError> for QueryPoolCreationError
impl From<VulkanError> for QueryPoolCreationError
source§fn from(err: VulkanError) -> QueryPoolCreationError
fn from(err: VulkanError) -> QueryPoolCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for QueueError
impl From<VulkanError> for QueueError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for RenderPassCreationError
impl From<VulkanError> for RenderPassCreationError
source§fn from(err: VulkanError) -> RenderPassCreationError
fn from(err: VulkanError) -> RenderPassCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for SamplerCreationError
impl From<VulkanError> for SamplerCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for SamplerYcbcrConversionCreationError
impl From<VulkanError> for SamplerYcbcrConversionCreationError
source§fn from(err: VulkanError) -> SamplerYcbcrConversionCreationError
fn from(err: VulkanError) -> SamplerYcbcrConversionCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for SemaphoreError
impl From<VulkanError> for SemaphoreError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for ShaderCreationError
impl From<VulkanError> for ShaderCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for SurfaceCreationError
impl From<VulkanError> for SurfaceCreationError
source§fn from(err: VulkanError) -> SurfaceCreationError
fn from(err: VulkanError) -> SurfaceCreationError
Converts to this type from the input type.
source§impl From<VulkanError> for SwapchainCreationError
impl From<VulkanError> for SwapchainCreationError
source§fn from(err: VulkanError) -> SwapchainCreationError
fn from(err: VulkanError) -> SwapchainCreationError
Converts to this type from the input type.