aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/TessSpacing.cs
blob: 6035366c16925d0b88247317a0a4c297f95b6c10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace Ryujinx.Graphics.Shader
{
    public enum TessSpacing
    {
        EqualSpacing = 0,
        FractionalEventSpacing = 1,
        FractionalOddSpacing = 2,
    }

    static class TessSpacingExtensions
    {
        public static string ToGlsl(this TessSpacing spacing)
        {
            return spacing switch
            {
                TessSpacing.FractionalEventSpacing => "fractional_even_spacing",
                TessSpacing.FractionalOddSpacing => "fractional_odd_spacing",
                _ => "equal_spacing",
            };
        }
    }
}