0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.Graphics.Shader/TessSpacing.cs
gdkchan d512ce122c
Initial tessellation shader support (#2534)
* Initial tessellation shader support

* Nits

* Re-arrange built-in table

* This is not needed anymore

* PR feedback
2021-10-18 18:38:04 -03:00

22 lines
No EOL
565 B
C#

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