diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.Graphics.GAL/ProgramPipelineState.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'Ryujinx.Graphics.GAL/ProgramPipelineState.cs')
| -rw-r--r-- | Ryujinx.Graphics.GAL/ProgramPipelineState.cs | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/Ryujinx.Graphics.GAL/ProgramPipelineState.cs b/Ryujinx.Graphics.GAL/ProgramPipelineState.cs deleted file mode 100644 index 41afb34b..00000000 --- a/Ryujinx.Graphics.GAL/ProgramPipelineState.cs +++ /dev/null @@ -1,78 +0,0 @@ -using Ryujinx.Common.Memory; -using System; - -namespace Ryujinx.Graphics.GAL -{ - /// <summary> - /// Descriptor for a pipeline buffer binding. - /// </summary> - public readonly struct BufferPipelineDescriptor - { - public bool Enable { get; } - public int Stride { get; } - public int Divisor { get; } - - public BufferPipelineDescriptor(bool enable, int stride, int divisor) - { - Enable = enable; - Stride = stride; - Divisor = divisor; - } - } - - /// <summary> - /// State required for a program to compile shaders. - /// </summary> - public struct ProgramPipelineState - { - // Some state is considered always dynamic and should not be included: - // - Viewports/Scissors - // - Bias values (not enable) - - public int SamplesCount; - public Array8<bool> AttachmentEnable; - public Array8<Format> AttachmentFormats; - public bool DepthStencilEnable; - public Format DepthStencilFormat; - - public bool LogicOpEnable; - public LogicalOp LogicOp; - public Array8<BlendDescriptor> BlendDescriptors; - public Array8<uint> ColorWriteMask; - - public int VertexAttribCount; - public Array32<VertexAttribDescriptor> VertexAttribs; - - public int VertexBufferCount; - public Array32<BufferPipelineDescriptor> VertexBuffers; - - // TODO: Min/max depth bounds. - public DepthTestDescriptor DepthTest; - public StencilTestDescriptor StencilTest; - public FrontFace FrontFace; - public Face CullMode; - public bool CullEnable; - - public PolygonModeMask BiasEnable; - - public float LineWidth; - // TODO: Polygon mode. - public bool DepthClampEnable; - public bool RasterizerDiscard; - public PrimitiveTopology Topology; - public bool PrimitiveRestartEnable; - public uint PatchControlPoints; - - public void SetVertexAttribs(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs) - { - VertexAttribCount = vertexAttribs.Length; - vertexAttribs.CopyTo(VertexAttribs.AsSpan()); - } - - public void SetLogicOpState(bool enable, LogicalOp op) - { - LogicOp = op; - LogicOpEnable = enable; - } - } -} |
