Trait vulkano::memory::pool::MemoryPoolAlloc [−][src]
pub unsafe trait MemoryPoolAlloc: Send + Sync {
fn mapped_memory(&self) -> Option<&MappedDeviceMemory>;
fn memory(&self) -> &DeviceMemory;
fn offset(&self) -> DeviceSize;
}
Expand description
Object that represents a single allocation. Its destructor should free the chunk.
Required methods
fn 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.
fn memory(&self) -> &DeviceMemory
fn memory(&self) -> &DeviceMemory
Returns the memory object from which this is allocated.
fn offset(&self) -> DeviceSize
fn offset(&self) -> DeviceSize
Returns the offset at the start of the memory where the first byte of this allocation resides.