pub struct AllocationHandle { /* private fields */ }Expand description
Allocation handle
Implementations§
Source§impl AllocationHandle
impl AllocationHandle
Sourcepub fn memory(&self) -> VkDeviceMemory
pub fn memory(&self) -> VkDeviceMemory
Get the device memory handle
Sourcepub fn offset(&self) -> VkDeviceSize
pub fn offset(&self) -> VkDeviceSize
Get the offset within the memory
Sourcepub fn size(&self) -> VkDeviceSize
pub fn size(&self) -> VkDeviceSize
Get the allocation size
Sourcepub fn mapped_ptr(&self) -> Option<*mut c_void>
pub fn mapped_ptr(&self) -> Option<*mut c_void>
Get mapped pointer if available
Trait Implementations§
Source§impl Clone for AllocationHandle
impl Clone for AllocationHandle
Source§fn clone(&self) -> AllocationHandle
fn clone(&self) -> AllocationHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationHandle
impl Debug for AllocationHandle
impl Copy for AllocationHandle
impl Send for AllocationHandle
impl Sync for AllocationHandle
Auto Trait Implementations§
impl Freeze for AllocationHandle
impl RefUnwindSafe for AllocationHandle
impl Unpin for AllocationHandle
impl UnwindSafe for AllocationHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more