pub type StandardMemoryAllocator = GenericMemoryAllocator<FreeListAllocator>;
Expand description

Standard memory allocator intended as a global and general-purpose allocator.

This type of allocator is what you should always use, unless you know, for a fact, that it is not suited to the task.

See also GenericMemoryAllocator for details about the allocation algorithm, and FreeListAllocator for details about the suballocation algorithm.

Aliased Type§

struct StandardMemoryAllocator { /* private fields */ }

Implementations§

source§

impl StandardMemoryAllocator

source

pub fn new_default(device: Arc<Device>) -> Self

Creates a new StandardMemoryAllocator with default configuration.