aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/Multithreading/Commands/Renderer/ResetCounterCommand.cs
blob: a20a6ca2e8242bb2e8e78b51fdc80b2156985e2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
{
    struct ResetCounterCommand : IGALCommand, IGALCommand<ResetCounterCommand>
    {
        public readonly CommandType CommandType => CommandType.ResetCounter;
        private CounterType _type;

        public void Set(CounterType type)
        {
            _type = type;
        }

        public static void Run(ref ResetCounterCommand command, ThreadedRenderer threaded, IRenderer renderer)
        {
            renderer.ResetCounter(command._type);
        }
    }
}