/ src / Ryujinx.Graphics.Gpu / Engine / Threed / IndirectDrawType.cs
IndirectDrawType.cs
 1  using System.Diagnostics.CodeAnalysis;
 2  
 3  namespace Ryujinx.Graphics.Gpu.Engine.Threed
 4  {
 5      /// <summary>
 6      /// Indirect draw type, which can be indexed or non-indexed, with or without a draw count.
 7      /// </summary>
 8      [SuppressMessage("Design", "CA1069: Enums values should not be duplicated")]
 9      enum IndirectDrawType
10      {
11          /// <summary>
12          /// Non-indexed draw without draw count.
13          /// </summary>
14          DrawIndirect = 0,
15  
16          /// <summary>
17          /// Indexed draw without draw count.
18          /// </summary>
19          DrawIndexedIndirect = Indexed,
20  
21          /// <summary>
22          /// Non-indexed draw with draw count.
23          /// </summary>
24          DrawIndirectCount = Count,
25  
26          /// <summary>
27          /// Indexed draw with draw count.
28          /// </summary>
29          DrawIndexedIndirectCount = Indexed | Count,
30  
31          /// <summary>
32          /// Indexed flag.
33          /// </summary>
34          Indexed = 1 << 0,
35  
36          /// <summary>
37          /// Draw count flag.
38          /// </summary>
39          Count = 1 << 1,
40      }
41  }