mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-27 17:07:10 +02:00
Implement user-defined clipping on GL state pipeline (#1118)
This commit is contained in:
parent
bdae7a4db0
commit
d2bfd2e100
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