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

Method Clear

Source/ThirdParty/VulkanMemoryAllocator/vk_mem_alloc.h:4987–5002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4985
4986template<typename T>
4987void VmaRawList<T>::Clear()
4988{
4989 if (IsEmpty() == false)
4990 {
4991 ItemType* pItem = m_pBack;
4992 while (pItem != VMA_NULL)
4993 {
4994 ItemType* const pPrevItem = pItem->pPrev;
4995 m_ItemAllocator.Free(pItem);
4996 pItem = pPrevItem;
4997 }
4998 m_pFront = VMA_NULL;
4999 m_pBack = VMA_NULL;
5000 m_Count = 0;
5001 }
5002}
5003
5004template<typename T>
5005void VmaRawList<T>::Remove(ItemType* pItem)

Callers 3

clearMethod · 0.45
ClearMethod · 0.45
vmaClearVirtualBlockFunction · 0.45

Calls 5

memsetFunction · 0.85
IsEmptyFunction · 0.50
GetSizeFunction · 0.50
FreeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected