diff --git a/src/ComputeSharp.Graphics/Commands/CommandAllocatorPool.cs b/src/ComputeSharp.Graphics/Commands/CommandAllocatorPool.cs
index 700f632c..d9f162bb 100644
--- a/src/ComputeSharp.Graphics/Commands/CommandAllocatorPool.cs
+++ b/src/ComputeSharp.Graphics/Commands/CommandAllocatorPool.cs
@@ -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}")
};
diff --git a/src/ComputeSharp.Graphics/Commands/CommandList.cs b/src/ComputeSharp.Graphics/Commands/CommandList.cs
index d344b2cf..46d38c81 100644
--- a/src/ComputeSharp.Graphics/Commands/CommandList.cs
+++ b/src/ComputeSharp.Graphics/Commands/CommandList.cs
@@ -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;
diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs
index c4ce6180..4693d290 100644
--- a/src/ComputeSharp.Graphics/GraphicsDevice.cs
+++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs
@@ -27,11 +27,6 @@ namespace ComputeSharp.Graphics
///
private readonly ID3D12CommandQueue NativeCopyCommandQueue;
- ///
- /// The instance to use for direct operations
- ///
- private readonly ID3D12CommandQueue NativeDirectCommandQueue;
-
///
/// Creates a new instance for the input
///
@@ -47,15 +42,12 @@ namespace ComputeSharp.Graphics
NativeComputeCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(CommandListType.Compute));
NativeCopyCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(CommandListType.Copy));
- NativeDirectCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(CommandListType.Direct));
ComputeAllocatorPool = new CommandAllocatorPool(this, CommandListType.Compute);
CopyAllocatorPool = new CommandAllocatorPool(this, CommandListType.Copy);
- DirectAllocatorPool = new CommandAllocatorPool(this, CommandListType.Direct);
NativeComputeFence = NativeDevice.CreateFence(0);
NativeCopyFence = NativeDevice.CreateFence(0);
- NativeDirectFence = NativeDevice.CreateFence(0);
ShaderResourceViewAllocator = new DescriptorAllocator(NativeDevice);
}
@@ -100,11 +92,6 @@ namespace ComputeSharp.Graphics
///
internal CommandAllocatorPool CopyAllocatorPool { get; }
- ///
- /// Gets the instance for direct operations
- ///
- internal CommandAllocatorPool DirectAllocatorPool { get; }
-
///
/// Gets the instance used for compute operations
///
@@ -115,11 +102,6 @@ namespace ComputeSharp.Graphics
///
internal ID3D12Fence NativeCopyFence { get; }
- ///
- /// Gets the instance used for direct operations
- ///
- internal ID3D12Fence NativeDirectFence { get; }
-
///
/// Gets the next fence value for compute operations
///
@@ -130,11 +112,6 @@ namespace ComputeSharp.Graphics
///
internal long NextCopyFenceValue { get; private set; } = 1;
- ///
- /// Gets the next fence value for direct operations
- ///
- internal long NextDirectFenceValue { get; private set; } = 1;
-
///
/// Creates a instance from a description
///
@@ -153,7 +130,6 @@ namespace ComputeSharp.Graphics
{
ID3D12Fence fence = commandList.CommandListType switch
{
- CommandListType.Direct => NativeDirectFence,
CommandListType.Compute => NativeComputeFence,
CommandListType.Copy => NativeCopyFence,
_ => throw new NotSupportedException("This command list type is not supported.")
@@ -192,12 +168,6 @@ namespace ComputeSharp.Graphics
fence = NativeCopyFence;
fenceValue = NextCopyFenceValue++;
break;
- case CommandListType.Direct:
- commandAllocatorPool = DirectAllocatorPool;
- commandQueue = NativeDirectCommandQueue;
- fence = NativeDirectFence;
- fenceValue = NextDirectFenceValue++;
- break;
default: throw new NotSupportedException($"Unsupported command list of type {commandList.CommandListType}");
}
@@ -211,22 +181,16 @@ namespace ComputeSharp.Graphics
///
public void Dispose()
{
- NativeDirectCommandQueue.Signal(NativeDirectFence, NextDirectFenceValue);
- NativeDirectCommandQueue.Wait(NativeDirectFence, NextDirectFenceValue);
-
ShaderResourceViewAllocator.Dispose();
ComputeAllocatorPool.Dispose();
CopyAllocatorPool.Dispose();
- DirectAllocatorPool.Dispose();
NativeComputeCommandQueue.Dispose();
NativeCopyCommandQueue.Dispose();
- NativeDirectCommandQueue.Dispose();
NativeComputeFence.Dispose();
- NativeDirectFence.Dispose();
- NativeDirectFence.Dispose();
+ NativeCopyFence.Dispose();
NativeDevice.Dispose();
}