Trait vulkano::memory::pool::MemoryPoolAlloc
source · pub unsafe trait MemoryPoolAlloc {
fn mapped_memory(&self) -> Option<&MappedDeviceMemory>;
fn memory(&self) -> &DeviceMemory;
fn offset(&self) -> usize;
}
Expand description
Object that represents a single allocation. Its destructor should free the chunk.
Required Methods
sourcefn mapped_memory(&self) -> Option<&MappedDeviceMemory>
fn mapped_memory(&self) -> Option<&MappedDeviceMemory>
Returns the memory object from which this is allocated. Returns None
if the memory is
not mapped.
sourcefn memory(&self) -> &DeviceMemory
fn memory(&self) -> &DeviceMemory
Returns the memory object from which this is allocated.