aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/OutputTopology.cs
blob: 6f977becb4f61b46b48300988bdc1f2b231c0b22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace Ryujinx.Graphics.Shader
{
    enum OutputTopology
    {
        PointList     = 1,
        LineStrip     = 6,
        TriangleStrip = 7
    }

    static class OutputTopologyExtensions
    {
        public static string ToGlslString(this OutputTopology topology)
        {
            switch (topology)
            {
                case OutputTopology.LineStrip:     return "line_strip";
                case OutputTopology.PointList:     return "points";
                case OutputTopology.TriangleStrip: return "triangle_strip";
            }

            return "points";
        }
    }
}