uint32_t allocate()
Get an index where there is no data in the array.
DescriptorIndexAllocator(int descriptorCount)
size_t getCapacity() const
std::stack< uint32_t > freeIndices
const std::vector< uint32_t > & getUsedIndices() const
Gets the indices of all allocated fields in the array.
std::vector< uint32_t > usedIndices
void reset(int newSize)
Resets all values in the buffers and allocates with new size.
DescriptorIndexAllocator()=delete
void free(uint32_t index)
Frees a cell in the array where the memory is not used anymore.
Core audio subsystem owning the miniaudio engine and managing playback.