mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-24 18:20:12 +01:00
28 lines
797 B
C#
28 lines
797 B
C#
|
namespace Ryujinx.Graphics.Shader
|
||
|
{
|
||
|
public enum InputTopology
|
||
|
{
|
||
|
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";
|
||
|
}
|
||
|
}
|
||
|
}
|