mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
24 lines
604 B
C#
24 lines
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";
|
|
}
|
|
}
|
|
} |