1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 13:01:44 +00:00
Ryujinx/Ryujinx.Graphics.Shader/TessSpacing.cs

22 lines
565 B
C#
Raw Normal View History

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"
};
}
}
}