File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1836,6 +1836,9 @@ VMA_CALL_PRE void VMA_CALL_POST vmaDestroyPool(
1836
1836
\param allocator Allocator object.
1837
1837
\param pool Pool object.
1838
1838
\param[out] pPoolStats Statistics of specified pool.
1839
+
1840
+ Note that when using the pool from multiple threads, returned information may immediately
1841
+ become outdated.
1839
1842
*/
1840
1843
VMA_CALL_PRE void VMA_CALL_POST vmaGetPoolStatistics(
1841
1844
VmaAllocator VMA_NOT_NULL allocator,
@@ -11605,6 +11608,10 @@ void VmaBlockVector::Free(const VmaAllocation hAllocation)
11605
11608
}
11606
11609
11607
11610
IncrementallySortBlocks();
11611
+
11612
+ m_hAllocator->m_Budget.RemoveAllocation(m_hAllocator->MemoryTypeIndexToHeapIndex(m_MemoryTypeIndex), hAllocation->GetSize());
11613
+ hAllocation->Destroy(m_hAllocator);
11614
+ m_hAllocator->m_AllocationObjectAllocator.Free(hAllocation);
11608
11615
}
11609
11616
11610
11617
// Destruction of a free block. Deferred until this point, outside of mutex
@@ -11615,10 +11622,6 @@ void VmaBlockVector::Free(const VmaAllocation hAllocation)
11615
11622
pBlockToDelete->Destroy(m_hAllocator);
11616
11623
vma_delete(m_hAllocator, pBlockToDelete);
11617
11624
}
11618
-
11619
- m_hAllocator->m_Budget.RemoveAllocation(m_hAllocator->MemoryTypeIndexToHeapIndex(m_MemoryTypeIndex), hAllocation->GetSize());
11620
- hAllocation->Destroy(m_hAllocator);
11621
- m_hAllocator->m_AllocationObjectAllocator.Free(hAllocation);
11622
11625
}
11623
11626
11624
11627
VkDeviceSize VmaBlockVector::CalcMaxBlockSize() const
You can’t perform that action at this time.
0 commit comments