| 9 | namespace dp |
| 10 | { |
| 11 | CPUBuffer::CPUBuffer(uint8_t elementSize, uint32_t capacity) : TBase(elementSize, capacity) |
| 12 | { |
| 13 | uint32_t memorySize = math::NextPowOf2(GetCapacity() * GetElementSize()); |
| 14 | m_memory = SharedBufferManager::instance().reserveSharedBuffer(memorySize); |
| 15 | m_memoryCursor = NonConstData(); |
| 16 | } |
| 17 | |
| 18 | CPUBuffer::~CPUBuffer() |
| 19 | { |
nothing calls this directly
no test coverage detected