فهرست منبع

Fix missing geometry shader passthrough inputs (#3106)

* Fix missing geometry shader passthrough inputs

* Shader cache version bump
gdkchan 4 سال پیش
والد
کامیت
f861f0bca2
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs
  2. 1 1
      Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs

+ 1 - 1
Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs

@@ -40,7 +40,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
         /// <summary>
         /// <summary>
         /// Version of the codegen (to be changed when codegen or guest format change).
         /// Version of the codegen (to be changed when codegen or guest format change).
         /// </summary>
         /// </summary>
-        private const ulong ShaderCodeGenVersion = 3012;
+        private const ulong ShaderCodeGenVersion = 3106;
 
 
         // Progress reporting helpers
         // Progress reporting helpers
         private volatile int _shaderCount;
         private volatile int _shaderCount;

+ 1 - 1
Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs

@@ -490,7 +490,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
             }
             }
             else
             else
             {
             {
-                int usedAttributes = context.Config.UsedInputAttributes;
+                int usedAttributes = context.Config.UsedInputAttributes | context.Config.PassthroughAttributes;
                 while (usedAttributes != 0)
                 while (usedAttributes != 0)
                 {
                 {
                     int index = BitOperations.TrailingZeroCount(usedAttributes);
                     int index = BitOperations.TrailingZeroCount(usedAttributes);