mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 18:15:25 +00:00
22 lines
472 B
C#
22 lines
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"
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|