From 3977272bbede26cb976c212e43f7073e7adee78f Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 13 Aug 2019 23:13:30 +0200 Subject: [PATCH] Moved PipelineState class --- src/ComputeSharp.Graphics/{ => Commands}/PipelineState.cs | 2 +- src/ComputeSharp.Shaders/ShaderRunner.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/ComputeSharp.Graphics/{ => Commands}/PipelineState.cs (97%) diff --git a/src/ComputeSharp.Graphics/PipelineState.cs b/src/ComputeSharp.Graphics/Commands/PipelineState.cs similarity index 97% rename from src/ComputeSharp.Graphics/PipelineState.cs rename to src/ComputeSharp.Graphics/Commands/PipelineState.cs index c7dcdc5e..fbf02571 100644 --- a/src/ComputeSharp.Graphics/PipelineState.cs +++ b/src/ComputeSharp.Graphics/Commands/PipelineState.cs @@ -1,6 +1,6 @@ using SharpDX.Direct3D12; -namespace ComputeSharp.Graphics +namespace ComputeSharp.Graphics.Commands { /// /// A representing a custom pipeline state for a compute operation diff --git a/src/ComputeSharp.Shaders/ShaderRunner.cs b/src/ComputeSharp.Shaders/ShaderRunner.cs index 5358df9e..e916a35d 100644 --- a/src/ComputeSharp.Shaders/ShaderRunner.cs +++ b/src/ComputeSharp.Shaders/ShaderRunner.cs @@ -6,7 +6,7 @@ using ComputeSharp.Shaders.Renderer.Models; using ComputeSharp.Shaders.Translation; using SharpDX.Direct3D12; using CommandList = ComputeSharp.Graphics.Commands.CommandList; -using PipelineState = ComputeSharp.Graphics.PipelineState; +using PipelineState = ComputeSharp.Graphics.Commands.PipelineState; namespace ComputeSharp.Shaders { @@ -55,12 +55,12 @@ namespace ComputeSharp.Shaders // Compile the loaded shader to HLSL bytecode ShaderBytecode shaderBytecode = ShaderCompiler.Instance.CompileShader(shaderSource); - // Create the root signature for the pipeline and the pipeline state + // Create the root signature for the pipeline and get the pipeline state RootSignatureDescription rootSignatureDescription = new RootSignatureDescription(RootSignatureFlags.None, shaderLoader.RootParameters); RootSignature rootSignature = device.CreateRootSignature(rootSignatureDescription); PipelineState pipelineState = new PipelineState(device, rootSignature, shaderBytecode); - // Create the commands list + // Create the commands list and set the pipeline state using CommandList commandList = new CommandList(device, CommandListType.Compute); commandList.SetPipelineState(pipelineState);