Implement user-defined clipping on GL state pipeline (#1118)
This commit is contained in:
parent
12399b8aea
commit
53369e79bd
5 changed files with 38 additions and 0 deletions
|
@ -811,6 +811,17 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
SetBuffer(index, stage, buffer, isStorage: false);
|
||||
}
|
||||
|
||||
public void SetUserClipDistance(int index, bool enableClip)
|
||||
{
|
||||
if (!enableClip)
|
||||
{
|
||||
GL.Disable(EnableCap.ClipDistance0 + index);
|
||||
return;
|
||||
}
|
||||
|
||||
GL.Enable(EnableCap.ClipDistance0 + index);
|
||||
}
|
||||
|
||||
public void SetVertexAttribs(VertexAttribDescriptor[] vertexAttribs)
|
||||
{
|
||||
EnsureVertexArray();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue