2019-12-16 05:59:46 +01:00
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
{
|
2020-11-13 00:15:34 +01:00
|
|
|
public enum InputTopology : byte
|
2019-12-16 05:59:46 +01:00
|
|
|
{
|
|
|
|
Points,
|
|
|
|
Lines,
|
|
|
|
LinesAdjacency,
|
|
|
|
Triangles,
|
|
|
|
TrianglesAdjacency
|
|
|
|
}
|
|
|
|
|
|
|
|
static class InputTopologyExtensions
|
|
|
|
{
|
|
|
|
public static string ToGlslString(this InputTopology topology)
|
|
|
|
{
|
|
|
|
switch (topology)
|
|
|
|
{
|
|
|
|
case InputTopology.Points: return "points";
|
|
|
|
case InputTopology.Lines: return "lines";
|
|
|
|
case InputTopology.LinesAdjacency: return "lines_adjacency";
|
|
|
|
case InputTopology.Triangles: return "triangles";
|
|
|
|
case InputTopology.TrianglesAdjacency: return "triangles_adjacency";
|
|
|
|
}
|
|
|
|
|
|
|
|
return "points";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|