From 0f6ec446ea3be41b1c22aa5c3870bd7a6c595d1f Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 11 Aug 2021 16:33:43 -0300 Subject: 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 --- Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Ryujinx.Graphics.Shader/Translation') diff --git a/Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs b/Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs index 18f4725d..6751d7ea 100644 --- a/Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs +++ b/Ryujinx.Graphics.Shader/Translation/TranslationCounts.cs @@ -7,6 +7,12 @@ namespace Ryujinx.Graphics.Shader.Translation public int TexturesCount { get; private set; } public int ImagesCount { get; private set; } + public TranslationCounts() + { + // The first binding is reserved for the support buffer. + UniformBuffersCount = 1; + } + internal int IncrementUniformBuffersCount() { return UniformBuffersCount++; -- cgit v1.2.3