/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / SetFaceCullingCommand.cs
SetFaceCullingCommand.cs
 1  namespace Ryujinx.Graphics.GAL.Multithreading.Commands
 2  {
 3      struct SetFaceCullingCommand : IGALCommand, IGALCommand<SetFaceCullingCommand>
 4      {
 5          public readonly CommandType CommandType => CommandType.SetFaceCulling;
 6          private bool _enable;
 7          private Face _face;
 8  
 9          public void Set(bool enable, Face face)
10          {
11              _enable = enable;
12              _face = face;
13          }
14  
15          public static void Run(ref SetFaceCullingCommand command, ThreadedRenderer threaded, IRenderer renderer)
16          {
17              renderer.Pipeline.SetFaceCulling(command._enable, command._face);
18          }
19      }
20  }