| 11179 | } |
| 11180 | |
| 11181 | void 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 |
| 11204 | void VmaAllocation_T::PrintParameters(class VmaJsonWriter& json) const |