diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-07 01:54:28 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 7ce5584f9e0d86f17ea4fc781483f60cfa288340 (patch) | |
| tree | 1fe59d43bbd7a84687f6ad65156704718eeb852c /Ryujinx.Graphics.Shader/CodeGen | |
| parent | 17fb11ddb98e94aaf494eaf6002ab149c5d54000 (diff) | |
Support depth clip mode and disable shader fast math optimization on NVIDIA as a workaround for compiler bugs (?)
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs index 32c90c2d..5a84ff49 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs @@ -26,6 +26,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl context.AppendLine("#extension GL_ARB_compute_shader : enable"); } + context.AppendLine("#pragma optionNV(fastmath off)"); + context.AppendLine(); context.AppendLine($"const int {DefaultNames.UndefinedName} = 0;"); |
