aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/TessSpacing.cs
blob: 35c44190c4fe80fba9f3fa95e209b14c3490d39f (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"
            };
        }
    }
}