mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-27 04:23:01 +00:00
d512ce122c
* Initial tessellation shader support * Nits * Re-arrange built-in table * This is not needed anymore * PR feedback
22 lines
No EOL
565 B
C#
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"
|
|
};
|
|
}
|
|
}
|
|
} |