using SharpDX.Direct3D12; namespace DirectX12GameEngine.Graphics { /// /// A representing a custom pipeline state for a compute operation /// public 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, RootSignature rootSignature, ShaderBytecode computeShader) { RootSignaturePointer = rootSignature; ComputeShader = computeShader; RootSignature = RootSignaturePointer; NativePipelineState = device.NativeDevice.CreateComputePipelineState(this); } /// /// Gets the value for the current shader /// public RootSignature RootSignature { get; } /// /// Gets the instance for the current object /// public SharpDX.Direct3D12.PipelineState NativePipelineState { get; } } }