using Vortice.Direct3D12;
namespace ComputeSharp.Graphics.Commands
{
///
/// A representing a custom pipeline state for a compute operation
///
internal sealed class PipelineState : ComputePipelineStateDescription
{
///
/// Creates a new instance with the specified parameters
///
/// The to use
/// The value for the current shader
/// The bytecode for the compute shader to run
public PipelineState(GraphicsDevice device, ID3D12RootSignature rootSignature, ShaderBytecode computeShader)
{
RootSignature = rootSignature;
ComputeShader = computeShader;
NativePipelineState = device.NativeDevice.CreateComputePipelineState(this);
}
///
/// Gets the instance for the current object
///
public ID3D12PipelineState NativePipelineState { get; }
}
}