Removed unnecessary direct queue, bug fixes

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-13 22:36:05 +01:00
1 親 10b96809e6
コミット 784c4ee0ed
3ファイル変更
+1 -42

検索条件に一致するファイルはありません

-1
ファイルの表示
@@ -51,7 +51,6 @@ namespace ComputeSharp.Graphics.Commands
{
CommandListType.Compute => GraphicsDevice.NativeComputeFence.CompletedValue,
CommandListType.Copy => GraphicsDevice.NativeCopyFence.CompletedValue,
CommandListType.Direct => GraphicsDevice.NativeDirectFence.CompletedValue,
_ => throw new NotSupportedException($"Unsupported command list type with value {CommandListType}")
};
-4
ファイルの表示
@@ -20,7 +20,6 @@ namespace ComputeSharp.Graphics.Commands
{
CommandListType.Compute => GraphicsDevice.ComputeAllocatorPool.GetCommandAllocator(),
CommandListType.Copy => GraphicsDevice.CopyAllocatorPool.GetCommandAllocator(),
CommandListType.Direct => GraphicsDevice.DirectAllocatorPool.GetCommandAllocator(),
_ => throw new NotSupportedException($"Unsupported command list type with value {CommandListType}")
};
@@ -113,9 +112,6 @@ namespace ComputeSharp.Graphics.Commands
{
switch (CommandListType)
{
case CommandListType.Direct:
GraphicsDevice.DirectAllocatorPool.Enqueue(CommandAllocator, GraphicsDevice.NextDirectFenceValue - 1);
break;
case CommandListType.Compute:
GraphicsDevice.ComputeAllocatorPool.Enqueue(CommandAllocator, GraphicsDevice.NextComputeFenceValue - 1);
break;