OutputTopology.cs 604 B

123456789101112131415161718192021222324
  1. namespace Ryujinx.Graphics.Shader
  2. {
  3. enum OutputTopology
  4. {
  5. PointList = 1,
  6. LineStrip = 6,
  7. TriangleStrip = 7
  8. }
  9. static class OutputTopologyExtensions
  10. {
  11. public static string ToGlslString(this OutputTopology topology)
  12. {
  13. switch (topology)
  14. {
  15. case OutputTopology.LineStrip: return "line_strip";
  16. case OutputTopology.PointList: return "points";
  17. case OutputTopology.TriangleStrip: return "triangle_strip";
  18. }
  19. return "points";
  20. }
  21. }
  22. }