aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/OutputTopology.cs
blob: dc4b304ad20e136ba9582f198661fd2817f54c1a (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
namespace Ryujinx.Graphics.Shader
{
    enum OutputTopology
    {
        PointList = 1,
        LineStrip = 6,
        TriangleStrip = 7,
    }

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