1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-09 02:01:45 +00:00
Ryujinx/Ryujinx.Graphics.Shader/TessPatchType.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
472 B
C#

namespace Ryujinx.Graphics.Shader
{
public enum TessPatchType
{
Isolines = 0,
Triangles = 1,
Quads = 2
}
static class TessPatchTypeExtensions
{
public static string ToGlsl(this TessPatchType type)
{
return type switch
{
TessPatchType.Isolines => "isolines",
TessPatchType.Quads => "quads",
_ => "triangles"
};
}
}
}