aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs
index f0f8ea35..b4823019 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/CodeGenContext.cs
@@ -103,6 +103,18 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
return _info.Functions[id];
}
+ public TransformFeedbackOutput GetTransformFeedbackOutput(int location, int component)
+ {
+ int index = (AttributeConsts.UserAttributeBase / 4) + location * 4 + component;
+ return _info.TransformFeedbackOutputs[index];
+ }
+
+ public TransformFeedbackOutput GetTransformFeedbackOutput(int location)
+ {
+ int index = location / 4;
+ return _info.TransformFeedbackOutputs[index];
+ }
+
private void UpdateIndentation()
{
_indentation = GetIndentation(_level);