| 112 | } |
| 113 | |
| 114 | void Tr2VirtualAllocator::Free( VirtualAllocation allocation ) |
| 115 | { |
| 116 | vmaVirtualFree( (VmaVirtualBlock)block, (VmaVirtualAllocation)allocation.allocation ); |
| 117 | |
| 118 | m_allocatedMemory -= allocation.size; |
| 119 | CCP_LOG( "Freed %zu bytes at offset %zu from %p. Memory usage: %f / %zu MBs", allocation.size, allocation.offset, block, (float)GetAllocatedMemory() / float( 1024 * 1024 ), m_currentSize / size_t( 1024 * 1024 ) ); |
| 120 | } |
| 121 | |
| 122 | size_t Tr2VirtualAllocator::GetBlockSize() const |
| 123 | { |
no outgoing calls
no test coverage detected