MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / DedicatedAllocUnmap

Method DedicatedAllocUnmap

include/vk_mem_alloc.h:11181–11201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11179}
11180
11181void VmaAllocation_T::DedicatedAllocUnmap(VmaAllocator hAllocator)
11182{
11183 VMA_ASSERT(GetType() == ALLOCATION_TYPE_DEDICATED);
11184
11185 if (m_MapCount > 0)
11186 {
11187 --m_MapCount;
11188 if (m_MapCount == 0 && !IsPersistentMap())
11189 {
11190 VMA_ASSERT(m_DedicatedAllocation.m_ExtraData != VMA_NULL);
11191 m_DedicatedAllocation.m_ExtraData->m_pMappedData = VMA_NULL;
11192 (*hAllocator->GetVulkanFunctions().vkUnmapMemory)(
11193 hAllocator->m_hDevice,
11194 m_DedicatedAllocation.m_hMemory);
11195 }
11196 }
11197 else
11198 {
11199 VMA_ASSERT(0 && "Unmapping dedicated allocation not previously mapped.");
11200 }
11201}
11202
11203#if VMA_STATS_STRING_ENABLED
11204void VmaAllocation_T::PrintParameters(class VmaJsonWriter& json) const

Callers 1

UnmapMethod · 0.80

Calls 1

GetTypeFunction · 0.85

Tested by

no test coverage detected