class
AllocationCollectionAn allocation collection is just a vector of MemoryBlocks of the same type.
Contents
- Reference
With commonly used memory types we wil quite easily fill one block up (e.g, device-local memory) so we will need to create a new block. In order to keep some organization among memory types, though, we store these similar memory blocks in this object so that one allocation collection stores all the device memory blocks of uniform type and "block" size (small, medimum, large)
Public functions
- void RemoveBlock(MemoryBlock* block_to_erase)
- Removes only the particular memory block from the internal vector, and re-sorts the blocks once complete.