This repository has been archived on 2026-01-05. You can view files and clone it, but cannot push or open issues/pull-requests.
Ryujinx/src/Ryujinx.Graphics.Shader/OutputTopology.cs

24 lines
567 B
C#

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