diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-08-11 16:33:43 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 21:33:43 +0200 |
| commit | 0f6ec446ea3be41b1c22aa5c3870bd7a6c595d1f (patch) | |
| tree | e441560dbdd560e9a020bb4b7606d3cd0698da02 /Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs | |
| parent | b5b7e23fc41e7045f9e803d6926e98ec7d049f0c (diff) | |
Replace BGRA and scale uniforms with a uniform block (#2496)
* Replace BGRA and scale uniforms with a uniform block
* Setting the data again on program change is no longer needed
* Optimize and resolve some warnings
* Avoid redundant support buffer updates
* Some optimizations to BindBuffers (now inlined)
* Unify render scale arrays
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs index cd9ca96e..eaf1050c 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/DefaultNames.cs @@ -14,6 +14,11 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl public const string DataName = "data"; + public const string SupportBlockName = "support_block"; + public const string SupportBlockAlphaTestName = "s_alpha_test"; + public const string SupportBlockIsBgraName = "s_is_bgra"; + public const string SupportBlockRenderScaleName = "s_render_scale"; + public const string BlockSuffix = "block"; public const string UniformNamePrefix = "c"; @@ -25,7 +30,5 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl public const string ArgumentNamePrefix = "a"; public const string UndefinedName = "undef"; - - public const string IsBgraName = "is_bgra"; } }
\ No newline at end of file |
