diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2020-12-01 23:13:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 00:13:27 +0100 |
| commit | 461c24092ae6e148d896c18aa3e86220c89981f8 (patch) | |
| tree | 109060d3254bf2b5b0ae5ba91fb413cfb2db251c /Ryujinx.Graphics.Shader/CodeGen | |
| parent | e383c41b6e04d941788221e39bb3a68656d28138 (diff) | |
Implement Force Early Z Register (#1755)
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs index 825564b8..d43fe632 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs @@ -141,6 +141,12 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl { if (context.Config.Stage == ShaderStage.Fragment) { + if (context.Config.GpuAccessor.QueryEarlyZForce()) + { + context.AppendLine("layout(early_fragment_tests) in;"); + context.AppendLine(); + } + context.AppendLine($"uniform bool {DefaultNames.IsBgraName}[8];"); context.AppendLine(); } |
