[−][src]Struct vk_mem::Allocation
Represents single memory allocation.
It may be either dedicated block of ash::vk::DeviceMemory or a specific region of a
bigger block of this type plus unique offset.
Although the library provides convenience functions that create a Vulkan buffer or image, allocate memory for it and bind them together, binding of the allocation to a buffer or an image is out of scope of the allocation itself.
Allocation object can exist without buffer/image bound, binding can be done manually by the user, and destruction of it can be done independently of destruction of the allocation.
The object also remembers its size and some other information. To retrieve this information,
use Allocator::get_allocation_info.
Some kinds allocations can be in lost state.
Methods
impl Allocation[src]
pub fn null() -> Allocation[src]
Trait Implementations
impl Clone for Allocation[src]
fn clone(&self) -> Allocation[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Allocation[src]
impl Debug for Allocation[src]
impl Send for Allocation[src]
impl Sync for Allocation[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,