Moved PipelineState class
このコミットが含まれているのは:
1 親
eea13fed65
コミット
3977272bbe
2ファイル変更
+4
-4
検索条件に一致するファイルはありません
+1
-1
@@ -1,6 +1,6 @@
|
||||
using SharpDX.Direct3D12;
|
||||
|
||||
namespace ComputeSharp.Graphics
|
||||
namespace ComputeSharp.Graphics.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> representing a custom pipeline state for a compute operation
|
||||
@@ -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);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする