ResetCounterCommand.cs 502 B

123456789101112131415161718
  1. namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
  2. {
  3. struct ResetCounterCommand : IGALCommand
  4. {
  5. public CommandType CommandType => CommandType.ResetCounter;
  6. private CounterType _type;
  7. public void Set(CounterType type)
  8. {
  9. _type = type;
  10. }
  11. public static void Run(ref ResetCounterCommand command, ThreadedRenderer threaded, IRenderer renderer)
  12. {
  13. renderer.ResetCounter(command._type);
  14. }
  15. }
  16. }