Removed duplicate command allocator enqueue

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-17 00:11:59 +01:00
1 親 e7bc76fd30
コミット fa63f3d5f0
1ファイル変更
-12
-12
ファイルの表示
@@ -110,18 +110,6 @@ namespace ComputeSharp.Graphics.Commands
/// <inheritdoc/>
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();
}
}