Graphics project renamed, dependencies adjusted

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-12 02:31:36 +02:00
1 親 de864f2875
コミット 6571390ef3
18ファイル変更
+7 -8

検索条件に一致するファイルはありません

+35
ファイルの表示
@@ -0,0 +1,35 @@
using SharpDX.Direct3D12;
namespace DirectX12GameEngine.Graphics
{
/// <summary>
/// A <see langword="class"/> representing a custom pipeline state for a compute operation
/// </summary>
public sealed class PipelineState : ComputePipelineStateDescription
{
/// <summary>
/// Creates a new <see cref="PipelineState"/> instance with the specified parameters
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> to use</param>
/// <param name="rootSignature">The <see cref="SharpDX.Direct3D12.RootSignature"/> value for the current shader</param>
/// <param name="computeShader">The bytecode for the compute shader to run</param>
public PipelineState(GraphicsDevice device, RootSignature rootSignature, ShaderBytecode computeShader)
{
RootSignaturePointer = rootSignature;
ComputeShader = computeShader;
RootSignature = RootSignaturePointer;
NativePipelineState = device.NativeDevice.CreateComputePipelineState(this);
}
/// <summary>
/// Gets the <see cref="SharpDX.Direct3D12.RootSignature"/> value for the current shader
/// </summary>
public RootSignature RootSignature { get; }
/// <summary>
/// Gets the <see cref="SharpDX.Direct3D12.PipelineState"/> instance for the current <see cref="PipelineState"/> object
/// </summary>
public SharpDX.Direct3D12.PipelineState NativePipelineState { get; }
}
}