mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Internal fix in VmaBlockVector::AllocatePage
This commit is contained in:
parent
37c2d74b05
commit
a1895bc765
1 changed files with 2 additions and 1 deletions
|
@ -12252,7 +12252,8 @@ VkResult VmaBlockVector::AllocatePage(
|
||||||
freeMemory = (heapBudget.usage < heapBudget.budget) ? (heapBudget.budget - heapBudget.usage) : 0;
|
freeMemory = (heapBudget.usage < heapBudget.budget) ? (heapBudget.budget - heapBudget.usage) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool canFallbackToDedicated = !IsCustomPool();
|
const bool canFallbackToDedicated = !HasExplicitBlockSize() &&
|
||||||
|
(createInfo.flags & VMA_ALLOCATION_CREATE_NEVER_ALLOCATE_BIT) == 0;
|
||||||
const bool canCreateNewBlock =
|
const bool canCreateNewBlock =
|
||||||
((createInfo.flags & VMA_ALLOCATION_CREATE_NEVER_ALLOCATE_BIT) == 0) &&
|
((createInfo.flags & VMA_ALLOCATION_CREATE_NEVER_ALLOCATE_BIT) == 0) &&
|
||||||
(m_Blocks.size() < m_MaxBlockCount) &&
|
(m_Blocks.size() < m_MaxBlockCount) &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue