Enum vulkano::VulkanError

source ·
#[repr(i32)]
#[non_exhaustive]
pub enum VulkanError {
Show 34 variants OutOfHostMemory, OutOfDeviceMemory, InitializationFailed, DeviceLost, MemoryMapFailed, LayerNotPresent, ExtensionNotPresent, FeatureNotPresent, IncompatibleDriver, TooManyObjects, FormatNotSupported, FragmentedPool, Unknown, OutOfPoolMemory, InvalidExternalHandle, Fragmentation, InvalidOpaqueCaptureAddress, IncompatibleDisplay, NotPermitted, SurfaceLost, NativeWindowInUse, OutOfDate, 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.
§

OutOfHostMemory

§

OutOfDeviceMemory

§

InitializationFailed

§

DeviceLost

§

MemoryMapFailed

§

LayerNotPresent

§

ExtensionNotPresent

§

FeatureNotPresent

§

IncompatibleDriver

§

TooManyObjects

§

FormatNotSupported

§

FragmentedPool

§

Unknown

§

OutOfPoolMemory

§

InvalidExternalHandle

§

Fragmentation

§

InvalidOpaqueCaptureAddress

§

IncompatibleDisplay

§

NotPermitted

§

SurfaceLost

§

NativeWindowInUse

§

OutOfDate

§

ImageUsageNotSupported

§

VideoPictureLayoutNotSupported

§

VideoProfileOperationNotSupported

§

VideoProfileFormatNotSupported

§

VideoProfileCodecNotSupported

§

VideoStdVersionNotSupported

§

ValidationFailed

§

FullScreenExclusiveModeLost

§

CompressionExhausted

§

InvalidDrmFormatModifierPlaneLayout

§

InvalidShader

§

Unnamed(Result)

Trait Implementations§

source§

impl Clone for VulkanError

source§

fn clone(&self) -> VulkanError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VulkanError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for VulkanError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError>

Formats the value using the given formatter. Read more
source§

impl Error for VulkanError

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Result> for VulkanError

source§

fn from(val: Result) -> VulkanError

Converts to this type from the input type.
source§

impl From<VulkanError> for AcquireError

source§

fn from(err: VulkanError) -> AcquireError

Converts to this type from the input type.
source§

impl From<VulkanError> for AllocationCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for BufferError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for BufferViewCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for CommandPoolCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for CommandPoolTrimError

source§

fn from(err: VulkanError) -> CommandPoolTrimError

Converts to this type from the input type.
source§

impl From<VulkanError> for ComputePipelineCreationError

source§

fn from(err: VulkanError) -> ComputePipelineCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for DebugUtilsMessengerCreationError

source§

fn from(err: VulkanError) -> DebugUtilsMessengerCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for DescriptorSetLayoutCreationError

source§

fn from(error: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for DeviceCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for DeviceMemoryError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for EventError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for FenceError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for FlushError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for FramebufferCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for FullScreenExclusiveError

source§

fn from(err: VulkanError) -> FullScreenExclusiveError

Converts to this type from the input type.
source§

impl From<VulkanError> for GetResultsError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for GraphicsPipelineCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for ImageError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for ImageViewCreationError

source§

fn from(err: VulkanError) -> ImageViewCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for ImmutableImageCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for InstanceCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for LoadingError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for MemoryFdPropertiesError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for MemoryMapError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for OomError

source§

fn from(err: VulkanError) -> OomError

Converts to this type from the input type.
source§

impl From<VulkanError> for PhysicalDeviceError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for PipelineLayoutCreationError

source§

fn from(err: VulkanError) -> PipelineLayoutCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for PresentWaitError

source§

fn from(err: VulkanError) -> PresentWaitError

Converts to this type from the input type.
source§

impl From<VulkanError> for QueryPoolCreationError

source§

fn from(err: VulkanError) -> QueryPoolCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for QueueError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for RenderPassCreationError

source§

fn from(err: VulkanError) -> RenderPassCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for SamplerCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for SamplerYcbcrConversionCreationError

source§

fn from(err: VulkanError) -> SamplerYcbcrConversionCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for SemaphoreError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for ShaderCreationError

source§

fn from(err: VulkanError) -> Self

Converts to this type from the input type.
source§

impl From<VulkanError> for SurfaceCreationError

source§

fn from(err: VulkanError) -> SurfaceCreationError

Converts to this type from the input type.
source§

impl From<VulkanError> for SwapchainCreationError

source§

fn from(err: VulkanError) -> SwapchainCreationError

Converts to this type from the input type.
source§

impl Hash for VulkanError

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<VulkanError> for VulkanError

source§

fn eq(&self, other: &VulkanError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for VulkanError

source§

impl Eq for VulkanError

source§

impl StructuralEq for VulkanError

source§

impl StructuralPartialEq for VulkanError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.