Initial tessellation shader support (#2534)
* Initial tessellation shader support * Nits * Re-arrange built-in table * This is not needed anymore * PR feedback
This commit is contained in:
parent
7603dbe3c8
commit
d512ce122c
42 changed files with 775 additions and 148 deletions
22
Ryujinx.Graphics.Shader/TessPatchType.cs
Normal file
22
Ryujinx.Graphics.Shader/TessPatchType.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
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"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue