| 1709 | |
| 1710 | template<typename T> |
| 1711 | void PoolAllocator<T>::Clear() |
| 1712 | { |
| 1713 | for(size_t i = m_ItemBlocks.size(); i--; ) |
| 1714 | { |
| 1715 | D3D12MA_DELETE_ARRAY(m_AllocationCallbacks, m_ItemBlocks[i].pItems, m_ItemBlocks[i].Capacity); |
| 1716 | } |
| 1717 | m_ItemBlocks.clear(true); |
| 1718 | } |
| 1719 | |
| 1720 | template<typename T> template<typename... Types> |
| 1721 | T* PoolAllocator<T>::Alloc(Types... args) |