Struct ccthw_ash_allocator::PoolAllocator
source · pub struct PoolAllocator<A: ComposableAllocator> { /* private fields */ }
Implementations§
source§impl<A: ComposableAllocator> PoolAllocator<A>
impl<A: ComposableAllocator> PoolAllocator<A>
pub fn new( memory_properties: MemoryProperties, chunk_size: u64, page_size: u64, allocator: A ) -> Self
Trait Implementations§
source§impl<A: ComposableAllocator> ComposableAllocator for PoolAllocator<A>
impl<A: ComposableAllocator> ComposableAllocator for PoolAllocator<A>
source§unsafe fn allocate(
&mut self,
allocation_requirements: AllocationRequirements
) -> Result<Allocation, AllocatorError>
unsafe fn allocate( &mut self, allocation_requirements: AllocationRequirements ) -> Result<Allocation, AllocatorError>
Allocate GPU memory based on the given requirements. Read more
source§unsafe fn free(&mut self, allocation: Allocation)
unsafe fn free(&mut self, allocation: Allocation)
Return a GPU memory allocation to the device. Read more