MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / clear

Method clear

include/vk_mem_alloc.h:5026–5034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5024
5025template<typename T, typename AllocatorT, size_t N>
5026void VmaSmallVector<T, AllocatorT, N>::clear(bool freeMemory)
5027{
5028 m_DynamicArray.clear();
5029 if (freeMemory)
5030 {
5031 m_DynamicArray.shrink_to_fit();
5032 }
5033 m_Count = 0;
5034}
5035
5036template<typename T, typename AllocatorT, size_t N>
5037void VmaSmallVector<T, AllocatorT, N>::insert(size_t index, const T& src)

Callers 15

LoadShaderFunction · 0.45
CreateSwapchainFunction · 0.45
DestroySwapchainFunction · 0.45
TestSparseBindingFunction · 0.45
ReadFileFunction · 0.45
ConvertCharsToUnicodeFunction · 0.45
MainTestFunction · 0.45
ValidateGpuDataFunction · 0.45
DestroyAllAllocationsFunction · 0.45
BenchmarkAlgorithmsCaseFunction · 0.45
TestPool_SameSizeFunction · 0.45
TestPool_BenchmarkFunction · 0.45

Calls 1

shrink_to_fitMethod · 0.80

Tested by 9

TestSparseBindingFunction · 0.36
MainTestFunction · 0.36
ValidateGpuDataFunction · 0.36
DestroyAllAllocationsFunction · 0.36
BenchmarkAlgorithmsCaseFunction · 0.36
TestPool_SameSizeFunction · 0.36
TestPool_BenchmarkFunction · 0.36
PerformMainTestsFunction · 0.36
PerformPoolTestsFunction · 0.36