mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-21 12:19:58 -04:00
Import the base tree (MIT, see LICENSE)
This commit is contained in:
24
tools/vendor/ryujinx/src/Ryujinx.Graphics.Shader/OutputTopology.cs
vendored
Normal file
24
tools/vendor/ryujinx/src/Ryujinx.Graphics.Shader/OutputTopology.cs
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
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",
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user