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
6265
6265
6266
6266
void GetPoolStats(VmaPoolStats* pStats);
6267
6267
6268
- bool IsEmpty() const { return m_Blocks.empty(); }
6268
+ bool IsEmpty();
6269
6269
bool IsCorruptionDetectionEnabled() const;
6270
6270
6271
6271
VkResult Allocate(
@@ -11814,6 +11814,12 @@ void VmaBlockVector::GetPoolStats(VmaPoolStats* pStats)
11814
11814
}
11815
11815
}
11816
11816
11817
+ bool VmaBlockVector::IsEmpty()
11818
+ {
11819
+ VmaMutexLockRead lock(m_Mutex, m_hAllocator->m_UseMutex);
11820
+ return m_Blocks.empty();
11821
+ }
11822
+
11817
11823
bool VmaBlockVector::IsCorruptionDetectionEnabled() const
11818
11824
{
11819
11825
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