Example #1
0
        public override void Begin()
        {
            if (_currentCommands != null)
            {
                _currentCommands.Dispose();
            }

            _currentCommands = GetFreeCommandList();
            _currentCommands.Begin();
        }
 public void DestroyResources()
 {
     lock (_lock)
     {
         _currentCommands?.Dispose();
         foreach (OpenGLCommandEntryList list in _availableLists)
         {
             list.Dispose();
         }
         foreach (OpenGLCommandEntryList list in _submittedLists)
         {
             list.Dispose();
         }
     }
 }
Example #3
0
 public void DestroyResources()
 {
     _commands.Dispose();
 }