Removed unnecessary direct queue, bug fixes
このコミットが含まれているのは:
1 親
10b96809e6
コミット
784c4ee0ed
3ファイル変更
+1
-42
検索条件に一致するファイルはありません
@@ -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}")
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする