|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Abstract interface for a pool-based buffer allocator. More...
#include <aeongames/MemoryPoolBuffer.hpp>


Public Member Functions | |
| virtual BufferAccessor | Allocate (size_t aSize)=0 |
| Allocate a sub-region from the memory pool. | |
| virtual void | Reset ()=0 |
| Reset the pool, freeing all previous allocations. | |
| virtual const Buffer & | GetBuffer () const =0 |
| Get a reference to the underlying Buffer. | |
Abstract interface for a pool-based buffer allocator.
Definition at line 27 of file MemoryPoolBuffer.hpp.
|
pure virtual |
Allocate a sub-region from the memory pool.
| aSize | Number of bytes to allocate. |
Implemented in AeonGames::OpenGLMemoryPoolBuffer, and AeonGames::VulkanMemoryPoolBuffer.
|
pure virtual |
Get a reference to the underlying Buffer.
Implemented in AeonGames::OpenGLMemoryPoolBuffer, and AeonGames::VulkanMemoryPoolBuffer.
|
pure virtual |
Reset the pool, freeing all previous allocations.
Implemented in AeonGames::OpenGLMemoryPoolBuffer, and AeonGames::VulkanMemoryPoolBuffer.