|
| void * | allocate (size_t size, size_t alignment=0, MemBlockType type=MemBlockType::Block) override |
| | Allocate raw memory.
|
| |
| void | deallocate (void *ptr, size_t size, MemBlockType type=MemBlockType::Block) override |
| | Deallocate the memory block at the given pointer, with the given size.
|
| |
| virtual void * | allocate (size_t size, size_t alignment=0, MemBlockType type=MemBlockType::Block) |
| | Allocate raw memory.
|
| |
| virtual void | deallocate (void *ptr, size_t size, MemBlockType type=MemBlockType::Block) |
| | Deallocate the memory block at the given pointer, with the given size.
|
| |
| virtual void | changeType (void *ptr, size_t size, MemBlockType oldType, MemBlockType newType) |
| |
| virtual size_t | getAllocatedBytes () const |
| | Return the number of bytes currently allocated by this allocator.
|
| |
| virtual size_t | getAllocationCount () const |
| | Return the number of allocations currently allocated by this allocator.
|
| |
Definition at line 17 of file Texture.cpp.
◆ ~TextureAllocator()
| Cogs::Core::TextureAllocator::~TextureAllocator |
( |
| ) |
|
|
inline |
◆ allocate()
| void * Cogs::Core::TextureAllocator::allocate |
( |
size_t |
size, |
|
|
size_t |
alignment = 0, |
|
|
MemBlockType |
type = MemBlockType::Block |
|
) |
| |
|
inlineoverridevirtual |
◆ deallocate()
| void Cogs::Core::TextureAllocator::deallocate |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
MemBlockType |
type = MemBlockType::Block |
|
) |
| |
|
inlineoverridevirtual |
◆ allocationSize
| Atomic<size_t> Cogs::Core::TextureAllocator::allocationSize { 0 } |
|
private |
The documentation for this class was generated from the following file: