aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-07-08 13:14:35 -0300
committergdkchan <gab.dark.100@gmail.com>2018-07-08 13:14:35 -0300
commit6479c3e48479259bca79bee6f1016e8108cc33a8 (patch)
tree2ed7e5460ff1d8b24600e748c2c101754a93c799 /Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
parentdc04b5465fe57231e88411c4771f2d63c9b342c1 (diff)
Implement GPU primitive restart (#221)
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
index b9885711..a4ec7f87 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLRasterizer.cs
@@ -184,6 +184,21 @@ namespace Ryujinx.Graphics.Gal.OpenGL
GL.ClearStencil(Stencil);
}
+ public void EnablePrimitiveRestart()
+ {
+ GL.Enable(EnableCap.PrimitiveRestart);
+ }
+
+ public void DisablePrimitiveRestart()
+ {
+ GL.Disable(EnableCap.PrimitiveRestart);
+ }
+
+ public void SetPrimitiveRestartIndex(uint Index)
+ {
+ GL.PrimitiveRestartIndex(Index);
+ }
+
public void CreateVbo(long Key, byte[] Buffer)
{
int Handle = GL.GenBuffer();