MCPcopy Create free account
hub / github.com/carbonengine/trinity / Free

Method Free

trinity/Tr2VirtualAllocator.cpp:114–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void 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
122size_t Tr2VirtualAllocator::GetBlockSize() const
123{

Callers 15

SetLayoutMethod · 0.45
GetDataMethod · 0.45
DestroyDataMethod · 0.45
CreateIndexBufferFunction · 0.45
CreateLodFromCMFMeshMethod · 0.45
ReleaseResourcesMethod · 0.45
ReleaseResourcesMethod · 0.45
ReleaseResourcesMethod · 0.45
RebuildInstanceDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected