Files
NX2navi/tools/vendor/ryujinx/src/Ryujinx.Graphics.Shader/OutputTopology.cs
2026-11-07 05:04:38 -05:00

25 lines
560 B
C#

namespace Ryujinx.Graphics.Shader
{
enum OutputTopology
{
PointList = 1,
LineStrip = 6,
TriangleStrip = 7,
}
static class OutputTopologyExtensions
{
extension(OutputTopology topology)
{
public string GlslString => topology switch
{
OutputTopology.LineStrip => "line_strip",
OutputTopology.PointList => "points",
OutputTopology.TriangleStrip => "triangle_strip",
_ => "points",
};
}
}
}