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
6278
6278
6279
6279
void GetPoolStats(VmaPoolStats* pStats);
6280
6280
6281
- bool IsEmpty() const { return m_Blocks.empty(); }
6281
+ bool IsEmpty();
6282
6282
bool IsCorruptionDetectionEnabled() const;
6283
6283
6284
6284
VkResult Allocate(
@@ -11827,6 +11827,12 @@ void VmaBlockVector::GetPoolStats(VmaPoolStats* pStats)
11827
11827
}
11828
11828
}
11829
11829
11830
+ bool VmaBlockVector::IsEmpty()
11831
+ {
11832
+ VmaMutexLockRead lock(m_Mutex, m_hAllocator->m_UseMutex);
11833
+ return m_Blocks.empty();
11834
+ }
11835
+
11830
11836
bool VmaBlockVector::IsCorruptionDetectionEnabled() const
11831
11837
{
11832
11838
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
15864
15870
{
15865
15871
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
15866
15872
}
15867
- if(m_Budget.m_BlockBytes-> compare_exchange_strong(blockBytes, blockBytesAfterAllocation))
15873
+ if(m_Budget.m_BlockBytes[heapIndex]. compare_exchange_strong(blockBytes, blockBytesAfterAllocation))
15868
15874
{
15869
15875
break;
15870
15876
}
You can’t perform that action at this time.
0 commit comments