aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs b/src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs
index 67304d02..fdf3eacc 100644
--- a/src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs
+++ b/src/Ryujinx.Graphics.Shader/Decoders/DecodedProgram.cs
@@ -60,6 +60,11 @@ namespace Ryujinx.Graphics.Shader.Decoders
_functionsWithId.Add(function);
}
+ public IoUsage GetIoUsage()
+ {
+ return new IoUsage(UsedFeatures, ClipDistancesWritten, AttributeUsage.UsedOutputAttributes);
+ }
+
public IEnumerator<DecodedFunction> GetEnumerator()
{
return _functions.Values.GetEnumerator();