ActionCommand.cs 561 B

123456789101112131415161718192021
  1. using Ryujinx.Graphics.GAL.Multithreading.Model;
  2. using System;
  3. namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
  4. {
  5. struct ActionCommand : IGALCommand
  6. {
  7. public CommandType CommandType => CommandType.Action;
  8. private TableRef<Action> _action;
  9. public void Set(TableRef<Action> action)
  10. {
  11. _action = action;
  12. }
  13. public static void Run(ref ActionCommand command, ThreadedRenderer threaded, IRenderer renderer)
  14. {
  15. command._action.Get(threaded)();
  16. }
  17. }
  18. }