aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/GpuMethodCall.cs
blob: 4a310b0751d868c0b3f81c57cb8d64960a1a8c9f (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)
        {
            Method      = method;
            Argument    = argument;
            SubChannel  = subChannel;
            MethodCount = methodCount;
        }
    }
}