| 11437 | } |
| 11438 | |
| 11439 | void VmaAllocation_T::BlockAllocMap() |
| 11440 | { |
| 11441 | VMA_ASSERT(GetType() == ALLOCATION_TYPE_BLOCK); |
| 11442 | 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."); |
| 11443 | |
| 11444 | if (m_MapCount < 0xFF) |
| 11445 | { |
| 11446 | ++m_MapCount; |
| 11447 | } |
| 11448 | else |
| 11449 | { |
| 11450 | VMA_ASSERT(0 && "Allocation mapped too many times simultaneously."); |
| 11451 | } |
| 11452 | } |
| 11453 | |
| 11454 | void VmaAllocation_T::BlockAllocUnmap() |
| 11455 | { |