aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/MmNv/Session.cs
blob: b67a9d2266b3f52d1d774248fc43efb94c2f5129 (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
25
26
namespace Ryujinx.Horizon.Sdk.MmNv
{
    class Session
    {
        public Module Module { get; }
        public uint Id { get; }
        public bool IsAutoClearEvent { get; }
        public uint ClockRateMin { get; private set; }
        public int ClockRateMax { get; private set; }

        public Session(uint id, Module module, bool isAutoClearEvent)
        {
            Module = module;
            Id = id;
            IsAutoClearEvent = isAutoClearEvent;
            ClockRateMin = 0;
            ClockRateMax = -1;
        }

        public void SetAndWait(uint clockRateMin, int clockRateMax)
        {
            ClockRateMin = clockRateMin;
            ClockRateMax = clockRateMax;
        }
    }
}