MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / BlockAllocMap

Method BlockAllocMap

include/vk_mem_alloc.h:11439–11452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11437}
11438
11439void 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
11454void VmaAllocation_T::BlockAllocUnmap()
11455{

Callers 1

MapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected