aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Engine/Threed/IndirectDrawType.cs
blob: 331b1976bdd9b4ffa623e8748273c900f00885be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Diagnostics.CodeAnalysis;

namespace Ryujinx.Graphics.Gpu.Engine.Threed
{
    /// <summary>
    /// Indirect draw type, which can be indexed or non-indexed, with or without a draw count.
    /// </summary>
    [SuppressMessage("Design", "CA1069: Enums values should not be duplicated")]
    enum IndirectDrawType
    {
        /// <summary>
        /// Non-indexed draw without draw count.
        /// </summary>
        DrawIndirect = 0,

        /// <summary>
        /// Indexed draw without draw count.
        /// </summary>
        DrawIndexedIndirect = Indexed,

        /// <summary>
        /// Non-indexed draw with draw count.
        /// </summary>
        DrawIndirectCount = Count,

        /// <summary>
        /// Indexed draw with draw count.
        /// </summary>
        DrawIndexedIndirectCount = Indexed | Count,

        /// <summary>
        /// Indexed flag.
        /// </summary>
        Indexed = 1 << 0,

        /// <summary>
        /// Draw count flag.
        /// </summary>
        Count = 1 << 1,
    }
}