diff options
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/GpuGraphicsState.cs')
| -rw-r--r-- | src/Ryujinx.Graphics.Shader/GpuGraphicsState.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Shader/GpuGraphicsState.cs b/src/Ryujinx.Graphics.Shader/GpuGraphicsState.cs index f16c71d5..38684002 100644 --- a/src/Ryujinx.Graphics.Shader/GpuGraphicsState.cs +++ b/src/Ryujinx.Graphics.Shader/GpuGraphicsState.cs @@ -103,6 +103,11 @@ namespace Ryujinx.Graphics.Shader public readonly bool OriginUpperLeft; /// <summary> + /// Indicates that the primitive ID values on the shader should be halved due to quad to triangles conversion. + /// </summary> + public readonly bool HalvePrimitiveId; + + /// <summary> /// Creates a new GPU graphics state. /// </summary> /// <param name="earlyZForce">Early Z force enable</param> @@ -124,6 +129,7 @@ namespace Ryujinx.Graphics.Shader /// <param name="dualSourceBlendEnable">Indicates whether dual source blend is enabled</param> /// <param name="yNegateEnabled">Indicates if negation of the viewport Y axis is enabled</param> /// <param name="originUpperLeft">If true, indicates that the fragment origin is the upper left corner of the viewport, otherwise it is the lower left corner</param> + /// <param name="halvePrimitiveId">Indicates that the primitive ID values on the shader should be halved due to quad to triangles conversion</param> public GpuGraphicsState( bool earlyZForce, InputTopology topology, @@ -143,7 +149,8 @@ namespace Ryujinx.Graphics.Shader in Array8<AttributeType> fragmentOutputTypes, bool dualSourceBlendEnable, bool yNegateEnabled, - bool originUpperLeft) + bool originUpperLeft, + bool halvePrimitiveId) { EarlyZForce = earlyZForce; Topology = topology; @@ -164,6 +171,7 @@ namespace Ryujinx.Graphics.Shader DualSourceBlendEnable = dualSourceBlendEnable; YNegateEnabled = yNegateEnabled; OriginUpperLeft = originUpperLeft; + HalvePrimitiveId = halvePrimitiveId; } } } |
