Module allocator

Source
Expand description

Contains useful memory allocator wrappers

§Allocator traits

These are defined in traits, and can be implemented to supply a custom allocator type to all phobos functions.

§Default allocator

A default allocator based on the gpu_allocator crate is implemented here. Types that take a generic allocator parameter default to this DefaultAllocator type.

§Scratch allocator

A linear allocator used for making temporary, short lived allocations. For more information check the scratch_allocator module documentation.

Modules§

default_allocator
Contains a default allocator type based on the gpu_allocator crate that is good for most needs.
memory_type
Exposes different memory types that determine where memory allocations should live.
scratch_allocator
A linear allocator that can be used for scratch resources.
traits
Allocator traits to implement for using your own custom allocator with phobos