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
sourceimpl Clone for VulkanError
impl Clone for VulkanError
sourcefn clone(&self) -> VulkanError
fn clone(&self) -> VulkanError
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 moresourceimpl Debug for VulkanError
impl Debug for VulkanError
sourceimpl Display for VulkanError
impl Display for VulkanError
sourceimpl Error for VulkanError
impl Error for VulkanError
1.30.0 · 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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Result> for VulkanError
impl From<Result> for VulkanError
sourcefn from(val: Result) -> VulkanError
fn from(val: Result) -> VulkanError
Converts to this type from the input type.
sourceimpl From<VulkanError> for AcquireError
impl From<VulkanError> for AcquireError
sourcefn from(err: VulkanError) -> AcquireError
fn from(err: VulkanError) -> AcquireError
Converts to this type from the input type.
sourceimpl From<VulkanError> for BufferCreationError
impl From<VulkanError> for BufferCreationError
sourcefn from(err: VulkanError) -> BufferCreationError
fn from(err: VulkanError) -> BufferCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for BufferViewCreationError
impl From<VulkanError> for BufferViewCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for CommandPoolTrimError
impl From<VulkanError> for CommandPoolTrimError
sourcefn from(err: VulkanError) -> CommandPoolTrimError
fn from(err: VulkanError) -> CommandPoolTrimError
Converts to this type from the input type.
sourceimpl From<VulkanError> for ComputePipelineCreationError
impl From<VulkanError> for ComputePipelineCreationError
sourcefn from(err: VulkanError) -> ComputePipelineCreationError
fn from(err: VulkanError) -> ComputePipelineCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for DebugUtilsMessengerCreationError
impl From<VulkanError> for DebugUtilsMessengerCreationError
sourcefn from(err: VulkanError) -> DebugUtilsMessengerCreationError
fn from(err: VulkanError) -> DebugUtilsMessengerCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for DescriptorSetLayoutCreationError
impl From<VulkanError> for DescriptorSetLayoutCreationError
sourcefn from(error: VulkanError) -> Self
fn from(error: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for DeviceCreationError
impl From<VulkanError> for DeviceCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for DeviceMemoryError
impl From<VulkanError> for DeviceMemoryError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for FenceError
impl From<VulkanError> for FenceError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for FramebufferCreationError
impl From<VulkanError> for FramebufferCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for FullScreenExclusiveError
impl From<VulkanError> for FullScreenExclusiveError
sourcefn from(err: VulkanError) -> FullScreenExclusiveError
fn from(err: VulkanError) -> FullScreenExclusiveError
Converts to this type from the input type.
sourceimpl From<VulkanError> for GetResultsError
impl From<VulkanError> for GetResultsError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for GraphicsPipelineCreationError
impl From<VulkanError> for GraphicsPipelineCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for ImageCreationError
impl From<VulkanError> for ImageCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for ImageViewCreationError
impl From<VulkanError> for ImageViewCreationError
sourcefn from(err: VulkanError) -> ImageViewCreationError
fn from(err: VulkanError) -> ImageViewCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for InstanceCreationError
impl From<VulkanError> for InstanceCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for LoadingError
impl From<VulkanError> for LoadingError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for MemoryFdPropertiesError
impl From<VulkanError> for MemoryFdPropertiesError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for MemoryMapError
impl From<VulkanError> for MemoryMapError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for OomError
impl From<VulkanError> for OomError
sourcefn from(err: VulkanError) -> OomError
fn from(err: VulkanError) -> OomError
Converts to this type from the input type.
sourceimpl From<VulkanError> for PhysicalDeviceError
impl From<VulkanError> for PhysicalDeviceError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for PipelineLayoutCreationError
impl From<VulkanError> for PipelineLayoutCreationError
sourcefn from(err: VulkanError) -> PipelineLayoutCreationError
fn from(err: VulkanError) -> PipelineLayoutCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for PresentWaitError
impl From<VulkanError> for PresentWaitError
sourcefn from(err: VulkanError) -> PresentWaitError
fn from(err: VulkanError) -> PresentWaitError
Converts to this type from the input type.
sourceimpl From<VulkanError> for QueryPoolCreationError
impl From<VulkanError> for QueryPoolCreationError
sourcefn from(err: VulkanError) -> QueryPoolCreationError
fn from(err: VulkanError) -> QueryPoolCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for RenderPassCreationError
impl From<VulkanError> for RenderPassCreationError
sourcefn from(err: VulkanError) -> RenderPassCreationError
fn from(err: VulkanError) -> RenderPassCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SamplerCreationError
impl From<VulkanError> for SamplerCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for SamplerYcbcrConversionCreationError
impl From<VulkanError> for SamplerYcbcrConversionCreationError
sourcefn from(err: VulkanError) -> SamplerYcbcrConversionCreationError
fn from(err: VulkanError) -> SamplerYcbcrConversionCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SemaphoreError
impl From<VulkanError> for SemaphoreError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for ShaderCreationError
impl From<VulkanError> for ShaderCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for SubmitBindSparseError
impl From<VulkanError> for SubmitBindSparseError
sourcefn from(err: VulkanError) -> SubmitBindSparseError
fn from(err: VulkanError) -> SubmitBindSparseError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SubmitCommandBufferError
impl From<VulkanError> for SubmitCommandBufferError
sourcefn from(err: VulkanError) -> SubmitCommandBufferError
fn from(err: VulkanError) -> SubmitCommandBufferError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SubmitPresentError
impl From<VulkanError> for SubmitPresentError
sourcefn from(err: VulkanError) -> SubmitPresentError
fn from(err: VulkanError) -> SubmitPresentError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SurfaceCreationError
impl From<VulkanError> for SurfaceCreationError
sourcefn from(err: VulkanError) -> SurfaceCreationError
fn from(err: VulkanError) -> SurfaceCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for SwapchainCreationError
impl From<VulkanError> for SwapchainCreationError
sourcefn from(err: VulkanError) -> SwapchainCreationError
fn from(err: VulkanError) -> SwapchainCreationError
Converts to this type from the input type.
sourceimpl From<VulkanError> for UnsafeCommandPoolCreationError
impl From<VulkanError> for UnsafeCommandPoolCreationError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl Hash for VulkanError
impl Hash for VulkanError
sourceimpl PartialEq<VulkanError> for VulkanError
impl PartialEq<VulkanError> for VulkanError
sourcefn eq(&self, other: &VulkanError) -> bool
fn eq(&self, other: &VulkanError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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