Struct ccthw_ash_allocator::DeviceAllocator
source · pub struct DeviceAllocator { /* private fields */ }
Expand description
A GPU memory allocator which always allocates memory directly from the device.
Implementations§
Trait Implementations§
source§impl ComposableAllocator for DeviceAllocator
impl ComposableAllocator for DeviceAllocator
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