mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibGL+LibSoftGPU: Implement the stencil buffer
This implements an 8-bit front stencil buffer. Stencil operations are SIMD optimized. LibGL changes include: * New `glStencilMask` and `glStencilMaskSeparate` functions * New context parameter `GL_STENCIL_CLEAR_VALUE`
This commit is contained in:
parent
6386671944
commit
11c807ebd1
Notes:
sideshowbarker
2024-07-17 20:42:49 +09:00
Author: https://github.com/gmta
Commit: 11c807ebd1
Pull-request: https://github.com/SerenityOS/serenity/pull/11960
Reviewed-by: https://github.com/Quaker762 ✅
13 changed files with 430 additions and 77 deletions
|
@ -36,5 +36,10 @@ void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass
|
|||
|
||||
void glStencilMask(GLuint mask)
|
||||
{
|
||||
dbgln("(STUBBED) glStencilMask(0x{:08x})", mask);
|
||||
g_gl_context->gl_stencil_mask_separate(GL_FRONT_AND_BACK, mask);
|
||||
}
|
||||
|
||||
void glStencilMaskSeparate(GLenum face, GLuint mask)
|
||||
{
|
||||
g_gl_context->gl_stencil_mask_separate(face, mask);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue