diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-02-11 15:52:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 19:52:20 +0100 |
commit | f861f0bca2767f74478bc444a7a057d05cc96638 (patch) | |
tree | 5c89b5500ad5f5ab7a9e9f50766a681524f91a33 | |
parent | 571496d243eb3aaffb35beaae60f390eed3f0ee0 (diff) |
Fix missing geometry shader passthrough inputs (#3106)1.1.25
* Fix missing geometry shader passthrough inputs
* Shader cache version bump
-rw-r--r-- | Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs | 2 | ||||
-rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs index 110115e7..f1e9f383 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs @@ -40,7 +40,7 @@ namespace Ryujinx.Graphics.Gpu.Shader /// <summary> /// Version of the codegen (to be changed when codegen or guest format change). /// </summary> - private const ulong ShaderCodeGenVersion = 3012; + private const ulong ShaderCodeGenVersion = 3106; // Progress reporting helpers private volatile int _shaderCount; diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs index 55d5551c..c955a616 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs @@ -490,7 +490,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl } else { - int usedAttributes = context.Config.UsedInputAttributes; + int usedAttributes = context.Config.UsedInputAttributes | context.Config.PassthroughAttributes; while (usedAttributes != 0) { int index = BitOperations.TrailingZeroCount(usedAttributes); |