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

Method BlockAllocMap

include/vk_mem_alloc.h:11116–11129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11114}
11115
11116void 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
11131void VmaAllocation_T::BlockAllocUnmap()
11132{

Callers 1

MapMethod · 0.80

Calls 1

GetTypeFunction · 0.85

Tested by

no test coverage detected