[−]Enum nobs_vulkanism::mem::Handle
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,
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,
T: Clone + Clone + Copy,
fn clone(&self) -> Handle<T>
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,
T: Copy + Clone + Copy,
impl<T> Debug for Handle<T> where
T: Debug + Clone + Copy,
T: Debug + Clone + Copy,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.