Class RenderAllocator

class RenderAllocator : public Allocator

Public Functions

RenderAllocator(int8_t *preallocated_ptr, const size_t preallocated_size, const size_t device_id)
int8_t *alloc(const size_t bytes)
void markChunkComplete()
size_t getCurrentChunkOffset() const
size_t getCurrentChunkSize() const
size_t getAllocatedSize() const
int8_t *getBasePtr() const

Private Members

int8_t *preallocated_ptr_
const size_t preallocated_size_
const size_t device_id_
size_t crt_chunk_offset_bytes_
size_t crt_allocated_bytes_
std::unique_ptr<std::mutex> alloc_mtx_ptr_