We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d6b067 commit 023976aCopy full SHA for 023976a
1 file changed
src/vk_mem_alloc.h
@@ -6265,7 +6265,7 @@ struct VmaBlockVector
6265
6266
void GetPoolStats(VmaPoolStats* pStats);
6267
6268
- bool IsEmpty() const { return m_Blocks.empty(); }
+ bool IsEmpty();
6269
bool IsCorruptionDetectionEnabled() const;
6270
6271
VkResult Allocate(
@@ -11814,6 +11814,12 @@ void VmaBlockVector::GetPoolStats(VmaPoolStats* pStats)
11814
}
11815
11816
11817
+bool VmaBlockVector::IsEmpty()
11818
+{
11819
+ VmaMutexLockRead lock(m_Mutex, m_hAllocator->m_UseMutex);
11820
+ return m_Blocks.empty();
11821
+}
11822
+
11823
bool VmaBlockVector::IsCorruptionDetectionEnabled() const
11824
{
11825
const uint32_t requiredMemFlags = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
0 commit comments