SetBlendStateCommand.cs 602 B

1234567891011121314151617181920
  1. namespace Ryujinx.Graphics.GAL.Multithreading.Commands
  2. {
  3. struct SetBlendStateCommand : IGALCommand
  4. {
  5. public CommandType CommandType => CommandType.SetBlendState;
  6. private int _index;
  7. private BlendDescriptor _blend;
  8. public void Set(int index, BlendDescriptor blend)
  9. {
  10. _index = index;
  11. _blend = blend;
  12. }
  13. public static void Run(ref SetBlendStateCommand command, ThreadedRenderer threaded, IRenderer renderer)
  14. {
  15. renderer.Pipeline.SetBlendState(command._index, command._blend);
  16. }
  17. }
  18. }