| 83 | } |
| 84 | |
| 85 | void Tr2SuballocatedBuffer::ReleaseResources( TriStorage s ) |
| 86 | { |
| 87 | if( ( s & TRISTORAGE_MANAGEDMEMORY ) != 0 ) |
| 88 | { |
| 89 | m_buffer = Tr2BufferAL(); |
| 90 | |
| 91 | for( auto& allocation : m_allocations ) |
| 92 | { |
| 93 | m_allocator.Free( allocation->m_allocation ); |
| 94 | allocation->m_parent = nullptr; |
| 95 | } |
| 96 | |
| 97 | m_allocations.clear(); |
| 98 | |
| 99 | CCP_STATS_SET( suballocatedBufferAllocated, m_allocator.GetAllocatedMemory() ); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | bool Tr2SuballocatedBuffer::OnPrepareResources() |
| 104 | { |
nothing calls this directly
no test coverage detected