Trait vulkano::memory::pool::MemoryPoolAlloc [] [src]

pub unsafe trait MemoryPoolAlloc {
    fn mapped_memory(&self) -> Option<&MappedDeviceMemory>;
fn memory(&self) -> &DeviceMemory;
fn offset(&self) -> usize; }

Object that represents a single allocation. Its destructor should free the chunk.

Required Methods

Returns the memory object from which this is allocated. Returns None if the memory is not mapped.

Returns the memory object from which this is allocated.

Returns the offset at the start of the memory where the first byte of this allocation resides.

Implementors