aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-07-29 18:47:03 -0300
committerGitHub <noreply@github.com>2023-07-29 18:47:03 -0300
commitf95b7c58779f01d9077996da67953d8d9acd058c (patch)
treeb0be466b2e52f966620aa2e0acb4524d28da1b22 /src/Ryujinx.Graphics.Shader/IGpuAccessor.cs
parenteb528ae0f05f057e671eb9e92f44f1caa9bcc84b (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.Shader/IGpuAccessor.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/IGpuAccessor.cs21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs b/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs
index 1c2b2809..a47791d3 100644
--- a/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs
+++ b/src/Ryujinx.Graphics.Shader/IGpuAccessor.cs
@@ -179,6 +179,15 @@ namespace Ryujinx.Graphics.Shader
}
/// <summary>
+ /// Queries if host state forces early depth testing.
+ /// </summary>
+ /// <returns>True if early depth testing is forced</returns>
+ bool QueryEarlyZForce()
+ {
+ return false;
+ }
+
+ /// <summary>
/// Queries whenever the current draw has written the base vertex and base instance into Constant Buffer 0.
/// </summary>
/// <returns>True if the shader translator can assume that the constant buffer contains the base IDs, false otherwise</returns>
@@ -534,19 +543,19 @@ namespace Ryujinx.Graphics.Shader
}
/// <summary>
- /// Queries if host state forces early depth testing.
+ /// Queries if host state disables the viewport transform.
/// </summary>
- /// <returns>True if early depth testing is forced</returns>
- bool QueryEarlyZForce()
+ /// <returns>True if the viewport transform is disabled</returns>
+ bool QueryViewportTransformDisable()
{
return false;
}
/// <summary>
- /// Queries if host state disables the viewport transform.
+ /// Queries Y negate enable state.
/// </summary>
- /// <returns>True if the viewport transform is disabled</returns>
- bool QueryViewportTransformDisable()
+ /// <returns>True if Y negate of the fragment coordinates is enabled, false otherwise</returns>
+ bool QueryYNegateEnabled()
{
return false;
}