diff --git a/src/ComputeSharp.Graphics/Commands/CommandList.cs b/src/ComputeSharp.Graphics/Commands/CommandList.cs index 46d38c81..01f6fdd5 100644 --- a/src/ComputeSharp.Graphics/Commands/CommandList.cs +++ b/src/ComputeSharp.Graphics/Commands/CommandList.cs @@ -110,18 +110,6 @@ namespace ComputeSharp.Graphics.Commands /// public override void Dispose() { - switch (CommandListType) - { - case CommandListType.Compute: - GraphicsDevice.ComputeAllocatorPool.Enqueue(CommandAllocator, GraphicsDevice.NextComputeFenceValue - 1); - break; - case CommandListType.Copy: - GraphicsDevice.CopyAllocatorPool.Enqueue(CommandAllocator, GraphicsDevice.NextCopyFenceValue - 1); - break; - default: - throw new NotSupportedException($"Unsupported command list type with value {CommandListType}"); - } - NativeCommandList.Dispose(); } }