GetCapabilitiesCommand.cs 642 B

1234567891011121314151617181920
  1. using Ryujinx.Graphics.GAL.Multithreading.Model;
  2. namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
  3. {
  4. struct GetCapabilitiesCommand : IGALCommand
  5. {
  6. public CommandType CommandType => CommandType.GetCapabilities;
  7. private TableRef<ResultBox<Capabilities>> _result;
  8. public void Set(TableRef<ResultBox<Capabilities>> result)
  9. {
  10. _result = result;
  11. }
  12. public static void Run(ref GetCapabilitiesCommand command, ThreadedRenderer threaded, IRenderer renderer)
  13. {
  14. command._result.Get(threaded).Result = renderer.GetCapabilities();
  15. }
  16. }
  17. }