示例#1
0
 protected override void UnloadData()
 {
     Debug.Assert(m_pool.ActiveCount == 0, "There are voxel geometry cells which were not returned to the pool.");
     Debug.Assert(m_pool.BaseCapacity == m_pool.Capacity, "Voxel geometry cells needed to be allocated for this scene. Consider increasing pool capacity.");
     m_pool.TrimToBaseCapacity();
 }
 public void Unload()
 {
     Debug.Assert(m_pool.ActiveCount == 0, "There are voxel cell contents which were not returned to the pool.");
     m_pool.TrimToBaseCapacity();
 }