[][src]Enum nobs_vkmem::Error

pub enum Error {
    InvalidPageSize,
    AllocError,
    OutOfMemory,
    OversizedBlock,
    InvalidMemoryType,
    CreateBufferFailed(u32),
    CreateImageFailed(u32),
    BindMemoryFailed,
    AlreadyBound,
    MapError,
}

Errors that can be occure when using this crate

Variants

InvalidPageSize

Indicates, that the desired pagesize is too small. Pages need to be at least of size bufferImageGranularity, that is defined in the physical device limits (or with get_min_pagesize).

AllocError

Indicates, that the allocator could not allocate a new page.

OutOfMemory

Indicates, that there is not enough free space available to bind resources.

OversizedBlock

Indicates that the requested resources can not be bound to a single block, because they are larger than a page.

InvalidMemoryType

Indicates, that this device does not have a memory type, that satisfies a combination of 'vk::MemoryRequirements' and 'vk::MemoryPropertyFlags'.

CreateBufferFailed(u32)

Indicates, that a buffer create returned unsuccessfull. The wrapped value is the index of the resource that could not be created.

CreateImageFailed(u32)

Indicates, that an image create returned unsuccessfull. The wrapped value is the index of the resource that could not be created.

BindMemoryFailed

Indicates, that binding a buffer or image failed

AlreadyBound

Indicates, that a resource was bound multiple times

MapError

indicates, that the requested memory region could not be mapped

Trait Implementations

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.