aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/GpuMethodCall.cs
blob: 762d10f1d04b01191537a40387f33a77a1547bd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace Ryujinx.Graphics
{
    struct GpuMethodCall
    {
        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 GpuMethodCall(
            int Method,
            int Argument,
            int SubChannel  = 0,
            int MethodCount = 0)
        {
            this.Method      = Method;
            this.Argument    = Argument;
            this.SubChannel  = SubChannel;
            this.MethodCount = MethodCount;
        }
    }
}