Implement GPU primitive restart (#221)
This commit is contained in:
parent
dc04b5465f
commit
6479c3e484
4 changed files with 47 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue