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

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

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

Required methods

pub fn mapped_memory(&self) -> Option<&MappedDeviceMemory>[src]

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

pub fn memory(&self) -> &DeviceMemory[src]

Returns the memory object from which this is allocated.

pub fn offset(&self) -> usize[src]

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

Loading content...

Implementors

impl MemoryPoolAlloc for StdMemoryPoolAlloc[src]

impl<A> MemoryPoolAlloc for PotentialDedicatedAllocation<A> where
    A: MemoryPoolAlloc
[src]

Loading content...