2019-10-13 08:02:07 +02:00
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
{
|
|
|
|
enum OutputTopology
|
|
|
|
{
|
|
|
|
PointList = 1,
|
|
|
|
LineStrip = 6,
|
|
|
|
TriangleStrip = 7
|
|
|
|
}
|
2019-12-16 05:59:46 +01:00
|
|
|
|
|
|
|
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 08:02:07 +02:00
|
|
|
}
|