diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-04-24 03:34:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 08:34:38 +0200 |
commit | 4dd77316f722f6b429063784b56ddced7883ea1d (patch) | |
tree | c2dcb3142e8fd35367d313318b2467e46b284b5c /Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | |
parent | 3f98369a17a313c32e1a00cb9b81c6695ac76f27 (diff) |
Use vector transform feedback outputs with fragment shaders (#4708)1.1.730
* Use vector transform feedback outputs with fragment shaders
* Shader cache version bump
* Fix missing outputs when vector transform feedback outputs are used
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs')
-rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs index ce1ab50e..ec761fa6 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs @@ -220,7 +220,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl ((config.LastInVertexPipeline && isOutAttr) || (config.Stage == ShaderStage.Fragment && !isOutAttr))) { - int components = config.LastInPipeline ? context.Info.GetTransformFeedbackOutputComponents(attrOffset) : 1; + int components = context.Info.GetTransformFeedbackOutputComponents(attrOffset); string name = components > 1 ? $"{prefix}{(value >> 4)}" : $"{prefix}{(value >> 4)}_{swzMask}"; if (AttributeInfo.IsArrayAttributeGlsl(config.Stage, isOutAttr)) |