File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6265,7 +6265,7 @@ struct VmaBlockVector
62656265
62666266 void GetPoolStats(VmaPoolStats* pStats);
62676267
6268- bool IsEmpty() const { return m_Blocks.empty(); }
6268+ bool IsEmpty();
62696269 bool IsCorruptionDetectionEnabled() const;
62706270
62716271 VkResult Allocate(
@@ -11814,6 +11814,12 @@ void VmaBlockVector::GetPoolStats(VmaPoolStats* pStats)
1181411814 }
1181511815}
1181611816
11817+ bool VmaBlockVector::IsEmpty()
11818+ {
11819+ VmaMutexLockRead lock(m_Mutex, m_hAllocator->m_UseMutex);
11820+ return m_Blocks.empty();
11821+ }
11822+
1181711823bool VmaBlockVector::IsCorruptionDetectionEnabled() const
1181811824{
1181911825 const uint32_t requiredMemFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
You can’t perform that action at this time.
0 commit comments