pub struct Allocation { /* private fields */ }Expand description
One live native region. No implicit free, unmap, submission or wait in Drop.
Implementations§
Source§impl Allocation
impl Allocation
pub fn handle(&self) -> DeviceMemory
pub fn offset(&self) -> u64
pub fn size(&self) -> u64
Sourcepub fn reserved_size(&self) -> u64
pub fn reserved_size(&self) -> u64
Native extent reserved to this region, including non-coherent atom padding.
pub fn memory_type_index(&self) -> u32
pub fn heap_index(&self) -> u32
pub fn is_host_coherent(&self) -> bool
pub fn is_host_visible(&self) -> bool
pub fn is_freed(&self) -> bool
Sourcepub fn mapped_range(
&self,
offset: u64,
size: u64,
) -> Result<Option<MappedMemoryRange<'static>>, AllocError>
pub fn mapped_range( &self, offset: u64, size: u64, ) -> Result<Option<MappedMemoryRange<'static>>, AllocError>
Translate an allocation-relative range to a native block range. This does not validate allocator liveness or establish a mapping.
Donor: VMA VmaAllocator_T::GetFlushOrInvalidateRange.
Adaptation: checked arithmetic, no-op ranges, allocation-end exception.
Auto Trait Implementations§
impl Forget for Allocation
impl Freeze for Allocation
impl Move for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnsafeUnpin for Allocation
impl UnwindSafe for Allocation
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