diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-07-29 18:47:03 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-29 18:47:03 -0300 |
commit | f95b7c58779f01d9077996da67953d8d9acd058c (patch) | |
tree | b0be466b2e52f966620aa2e0acb4524d28da1b22 /src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs | |
parent | eb528ae0f05f057e671eb9e92f44f1caa9bcc84b (diff) |
Fix incorrect fragment origin when YNegate is enabled (#4673)1.1.970
* Fix incorrect fragment origin when YNegate is enabled
* Shader cache version bump
* Do not update support buffer if shader does not read gl_FragCoord
* Pass unscaled viewport size to the support buffer
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs b/src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs index cbf1573c..b2935a5b 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs @@ -342,5 +342,19 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed Signal(); } } + + /// <summary> + /// Sets the Y negate enabled state. + /// </summary> + /// <param name="enabled">True if Y negate of the fragment coordinates is enabled</param> + public void SetYNegateEnabled(bool enabled) + { + if (enabled != _graphics.YNegateEnabled) + { + _graphics.YNegateEnabled = enabled; + + Signal(); + } + } } } |