Implement Force Early Z Register (#1755)

This commit is contained in:
riperiperi
2020-12-01 23:13:27 +00:00
committed by GitHub
parent e383c41b6e
commit 461c24092a
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();
}

View File

@ -78,5 +78,10 @@
{
return TextureFormat.R8G8B8A8Unorm;
}
bool QueryEarlyZForce()
{
return false;
}
}
}