SetFrontFaceCommand.cs
1 namespace Ryujinx.Graphics.GAL.Multithreading.Commands 2 { 3 struct SetFrontFaceCommand : IGALCommand, IGALCommand<SetFrontFaceCommand> 4 { 5 public readonly CommandType CommandType => CommandType.SetFrontFace; 6 private FrontFace _frontFace; 7 8 public void Set(FrontFace frontFace) 9 { 10 _frontFace = frontFace; 11 } 12 13 public static void Run(ref SetFrontFaceCommand command, ThreadedRenderer threaded, IRenderer renderer) 14 { 15 renderer.Pipeline.SetFrontFace(command._frontFace); 16 } 17 } 18 }