|
UraniumCompute 0.1.0
A GPU accelerated parallel task scheduler
|
An interface for memory allocators. More...
#include <IAllocator.h>
Public Member Functions | |
| virtual void * | Allocate (USize size, USize alignment)=0 |
| Allocate memory. More... | |
| virtual void | Deallocate (void *pointer)=0 |
| Deallocate memory. More... | |
| virtual const char * | GetName () const =0 |
| Get debug name of the allocator. More... | |
An interface for memory allocators.
|
pure virtual |
Allocate memory.
| size | - Size of the allocation in bytes. |
| alignment | - Alignment of the allocation in bytes. |
Implemented in UN::SystemAllocator.
|
pure virtual |
Deallocate memory.
| pointer | - A pointer to the block of memory to deallocate. |
Implemented in UN::SystemAllocator.
|
pure virtual |
Get debug name of the allocator.
Implemented in UN::SystemAllocator.