| 11114 | } |
| 11115 | |
| 11116 | void VmaAllocation_T::BlockAllocMap() |
| 11117 | { |
| 11118 | VMA_ASSERT(GetType() == ALLOCATION_TYPE_BLOCK); |
| 11119 | VMA_ASSERT(IsMappingAllowed() && "Mapping is not allowed on this allocation! Please use one of the new VMA_ALLOCATION_CREATE_HOST_ACCESS_* flags when creating it."); |
| 11120 | |
| 11121 | if (m_MapCount < 0xFF) |
| 11122 | { |
| 11123 | ++m_MapCount; |
| 11124 | } |
| 11125 | else |
| 11126 | { |
| 11127 | VMA_ASSERT(0 && "Allocation mapped too many times simultaneously."); |
| 11128 | } |
| 11129 | } |
| 11130 | |
| 11131 | void VmaAllocation_T::BlockAllocUnmap() |
| 11132 | { |