aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/Multithreading/Commands/Renderer/ResetCounterCommand.cs
blob: 3d796041712503f14a2f3736af3477472fbd4c40 (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 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);
        }
    }
}