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