MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / Clear

Method Clear

modules/engine/graphics/src/d3d12/D3D12MemAlloc.cpp:1711–1718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1709
1710template<typename T>
1711void 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
1720template<typename T> template<typename... Types>
1721T* PoolAllocator<T>::Alloc(Types... args)

Callers

nothing calls this directly

Calls 9

D3D12MA_DELETE_ARRAYFunction · 0.85
memsetFunction · 0.85
GetSizeFunction · 0.70
IsEmptyFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45
FreeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected