Support texture rectangle targets (non-normalized coords)
This commit is contained in:
parent
2eccc7023a
commit
9d7a142a48
23 changed files with 473 additions and 356 deletions
28
Ryujinx.Graphics.Shader/InputTopology.cs
Normal file
28
Ryujinx.Graphics.Shader/InputTopology.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
namespace Ryujinx.Graphics.Shader
|
||||
{
|
||||
public enum InputTopology
|
||||
{
|
||||
Points,
|
||||
Lines,
|
||||
LinesAdjacency,
|
||||
Triangles,
|
||||
TrianglesAdjacency
|
||||
}
|
||||
|
||||
static class InputTopologyExtensions
|
||||
{
|
||||
public static string ToGlslString(this InputTopology topology)
|
||||
{
|
||||
switch (topology)
|
||||
{
|
||||
case InputTopology.Points: return "points";
|
||||
case InputTopology.Lines: return "lines";
|
||||
case InputTopology.LinesAdjacency: return "lines_adjacency";
|
||||
case InputTopology.Triangles: return "triangles";
|
||||
case InputTopology.TrianglesAdjacency: return "triangles_adjacency";
|
||||
}
|
||||
|
||||
return "points";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue