File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6278,7 +6278,7 @@ struct VmaBlockVector
62786278
62796279 void GetPoolStats(VmaPoolStats* pStats);
62806280
6281- bool IsEmpty() const { return m_Blocks.empty(); }
6281+ bool IsEmpty();
62826282 bool IsCorruptionDetectionEnabled() const;
62836283
62846284 VkResult Allocate(
@@ -11827,6 +11827,12 @@ void VmaBlockVector::GetPoolStats(VmaPoolStats* pStats)
1182711827 }
1182811828}
1182911829
11830+ bool VmaBlockVector::IsEmpty()
11831+ {
11832+ VmaMutexLockRead lock(m_Mutex, m_hAllocator->m_UseMutex);
11833+ return m_Blocks.empty();
11834+ }
11835+
1183011836bool VmaBlockVector::IsCorruptionDetectionEnabled() const
1183111837{
1183211838 const uint32_t requiredMemFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
@@ -15864,7 +15870,7 @@ VkResult VmaAllocator_T::AllocateVulkanMemory(const VkMemoryAllocateInfo* pAlloc
1586415870 {
1586515871 return VK_ERROR_OUT_OF_DEVICE_MEMORY;
1586615872 }
15867- if(m_Budget.m_BlockBytes-> compare_exchange_strong(blockBytes, blockBytesAfterAllocation))
15873+ if(m_Budget.m_BlockBytes[heapIndex]. compare_exchange_strong(blockBytes, blockBytesAfterAllocation))
1586815874 {
1586915875 break;
1587015876 }
You can’t perform that action at this time.
0 commit comments