[][src]Enum rhyoea::result::Code

#[repr(i32)]
pub enum Code {
    Success,
    NotReady,
    Timeout,
    EventSet,
    EventReset,
    Incomplete,
    ErrorOutOfHostMemory,
    ErrorOutOfDeviceMemory,
    ErrorInitializationFailed,
    ErrorDeviceLost,
    ErrorMemoryMapFailed,
    ErrorLayerNotPresent,
    ErrorExtensionNotPresent,
    ErrorFeatureNotPresent,
    ErrorIncompatibleDriver,
    ErrorTooManyObjects,
    ErrorFormatNotSupported,
    ErrorFragmentedPool,
    ErrorOutOfPoolMemory,
    ErrorInvalidExternalHandle,
    ErrorSurfaceLostKhr,
    ErrorNativeWindowInUseKhr,
    SuboptimalKhr,
    ErrorOutOfDateKhr,
    ErrorIncompatibleDisplayKhr,
    ErrorValidationFailedExt,
    ErrorInvalidShaderNv,
    ErrorFragmentationExt,
    ErrorNotPermittedExt,
}

Vulkan command return codes

Variants

Success

Command successfully completed

NotReady

A fence or query has not yet completed

Timeout

A wait operation has not completed in the specified time

EventSet

An event is signaled

EventReset

An event is unsignaled

Incomplete

A return array was too small for the result

ErrorOutOfHostMemory

A host memory allocation has failed.

ErrorOutOfDeviceMemory

A device memory allocation has failed.

ErrorInitializationFailed

Initialization of an object could not be completed for implementation-specific reasons.

ErrorDeviceLost

The logical or physical device has been lost. See Lost Device

ErrorMemoryMapFailed

Mapping of a memory object has failed.

ErrorLayerNotPresent

A requested layer is not present or could not be loaded.

ErrorExtensionNotPresent

A requested extension is not supported.

ErrorFeatureNotPresent

A requested feature is not supported.

ErrorIncompatibleDriver

The requested version of Vulkan is not supported by the driver or is otherwise incompatible for implementation-specific reasons.

ErrorTooManyObjects

Too many objects of the type have already been created.

ErrorFormatNotSupported

A requested format is not supported on this device.

ErrorFragmentedPool

A pool allocation has failed due to fragmentation of the pool’s memory. This must only be returned if no attempt to allocate host or device memory was made to accomodate the new allocation. This should be returned in preference to VK_ERROR_OUT_OF_POOL_MEMORY, but only if the implementation is certain that the pool allocation failure was due to fragmentation.

ErrorOutOfPoolMemory

A pool memory allocation has failed. This must only be returned if no attempt to allocate host or device memory was made to accomodate the new allocation. If the failure was definitely due to fragmentation of the pool, VK_ERROR_FRAGMENTED_POOL should be returned instead.

ErrorInvalidExternalHandle

An external handle is not a valid handle of the specified type.

ErrorSurfaceLostKhr

A surface is no longer available.

ErrorNativeWindowInUseKhr

The requested window is already in use by Vulkan or another API in a manner which prevents it from being used again.

SuboptimalKhr

A swapchain no longer matches the surface properties exactly, but can still be used to present to the surface successfully.

ErrorOutOfDateKhr

A surface has changed in such a way that it is no longer compatible with the swapchain, and further presentation requests using the swapchain will fail. Applications must query the new surface properties and recreate their swapchain if they wish to continue presenting to the surface.

ErrorIncompatibleDisplayKhr

The display used by a swapchain does not use the same presentable image layout, or is incompatible in a way that prevents sharing an image.

ErrorValidationFailedExt
ErrorInvalidShaderNv

One or more shaders failed to compile or link.

ErrorFragmentationExt

A descriptor pool creation has failed due to fragmentation.

ErrorNotPermittedExt

Trait Implementations

impl Clone for Code[src]

impl Copy for Code[src]

impl Debug for Code[src]

impl Display for Code[src]

impl Error for Code[src]

Auto Trait Implementations

impl Send for Code

impl Sync for Code

impl Unpin for Code

impl UnwindSafe for Code

impl RefUnwindSafe for Code

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]