Example #1
0
 public void Free()
 {
     using (CommandPool.AllocateBuffers(new CommandBufferAllocateInfo(CommandBufferLevel.Primary, 1))[0]) { }
     CommandBuffer[] buffers = CommandPool.AllocateBuffers(new CommandBufferAllocateInfo(CommandBufferLevel.Primary, 1));
     CommandPool.FreeBuffers(buffers);
 }
Example #2
0
 /// <summary>
 /// Free a set of command buffers
 /// </summary>
 /// <param name="buffers"></param>
 public void FreeCommandBuffers(params CommandBuffer[] buffers)
 {
     CommandPool.FreeBuffers(buffers);
 }