Implement Force Early Z Register (#1755)

This commit is contained in:
riperiperi 2020-12-01 23:13:27 +00:00 committed by GitHub
parent a0269e1d4d
commit 0d6699f375
8 changed files with 60 additions and 2 deletions

View file

@ -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();
}