aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/MethodParams.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Gpu/MethodParams.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/MethodParams.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/MethodParams.cs b/Ryujinx.Graphics.Gpu/MethodParams.cs
new file mode 100644
index 00000000..fea4eb30
--- /dev/null
+++ b/Ryujinx.Graphics.Gpu/MethodParams.cs
@@ -0,0 +1,24 @@
+namespace Ryujinx.Graphics
+{
+ struct MethodParams
+ {
+ public int Method { get; private set; }
+ public int Argument { get; private set; }
+ public int SubChannel { get; private set; }
+ public int MethodCount { get; private set; }
+
+ public bool IsLastCall => MethodCount <= 1;
+
+ public MethodParams(
+ int method,
+ int argument,
+ int subChannel = 0,
+ int methodCount = 0)
+ {
+ Method = method;
+ Argument = argument;
+ SubChannel = subChannel;
+ MethodCount = methodCount;
+ }
+ }
+} \ No newline at end of file