0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.Graphics.Shader/OutputTopology.cs

24 lines
No EOL
604 B
C#

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";
}
}
}