1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-14 04:56:40 +00:00
Ryujinx/Ryujinx.Graphics.Shader/OutputTopology.cs

24 lines
604 B
C#
Raw Normal View History

2019-10-13 07:02:07 +01:00
namespace Ryujinx.Graphics.Shader
{
enum OutputTopology
{
PointList = 1,
LineStrip = 6,
TriangleStrip = 7
}
static class OutputTopologyExtensions
{
public static string ToGlslString(this OutputTopology topology)
{
switch (topology)
{
case OutputTopology.LineStrip: return "line_strip";
case OutputTopology.PointList: return "points";
case OutputTopology.TriangleStrip: return "triangle_strip";
}
return "points";
}
}
2019-10-13 07:02:07 +01:00
}