mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-14 08:48:32 +00:00
Refactored VmaBlockVector::SortByFreeSize to fix compilation on XCode 13.4
Fixes #269. Thanks @richard-lunarg !
This commit is contained in:
parent
0bbde1750e
commit
b77238c92c
1 changed files with 1 additions and 1 deletions
|
@ -12732,7 +12732,7 @@ void VmaBlockVector::IncrementallySortBlocks()
|
|||
void VmaBlockVector::SortByFreeSize()
|
||||
{
|
||||
VMA_SORT(m_Blocks.begin(), m_Blocks.end(),
|
||||
[](auto* b1, auto* b2)
|
||||
[](VmaDeviceMemoryBlock* b1, VmaDeviceMemoryBlock* b2) -> bool
|
||||
{
|
||||
return b1->m_pMetadata->GetSumFreeSize() < b2->m_pMetadata->GetSumFreeSize();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue