[]Enum nobs_vulkanism::mem::Handle

pub enum Handle<T> where
    T: Clone + Copy
{ Buffer(T), Image(T), }

Enum defining resource types that can be bound

Handles that can be bound to memory are either of type vk::Buffer or vk::Image. In both cases the handles are u64 typedefs. The enum in used, so that we can submit buffer and image handles for binding to the Allocator in a uniform fashion, whlile still being able to distinguish between them.

Submitting buffers along with images to the Allocator makes sence, when they use the same memory type (which is the case for device local buffers and images)

Variants

Buffer(T)Image(T)

Methods

impl<T> Handle<T> where
    T: Clone + Copy

pub fn get(&self) -> T

Gets the underlying handle's value

Trait Implementations

impl<T> Clone for Handle<T> where
    T: Clone + Clone + Copy

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Copy for Handle<T> where
    T: Copy + Clone + Copy

impl<T> Debug for Handle<T> where
    T: Debug + Clone + Copy

Auto Trait Implementations

impl<T> Send for Handle<T> where
    T: Send

impl<T> Sync for Handle<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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.

impl<T> Erased for T