mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:47:45 +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
13 changed files with 430 additions and 77 deletions
|
@ -87,6 +87,28 @@ enum class PrimitiveType {
|
|||
Quads,
|
||||
};
|
||||
|
||||
enum StencilOperation {
|
||||
Decrement,
|
||||
DecrementWrap,
|
||||
Increment,
|
||||
IncrementWrap,
|
||||
Invert,
|
||||
Keep,
|
||||
Replace,
|
||||
Zero,
|
||||
};
|
||||
|
||||
enum StencilTestFunction {
|
||||
Always,
|
||||
Equal,
|
||||
Greater,
|
||||
GreaterOrEqual,
|
||||
Less,
|
||||
LessOrEqual,
|
||||
Never,
|
||||
NotEqual,
|
||||
};
|
||||
|
||||
enum TexCoordGenerationCoordinate {
|
||||
None = 0x0,
|
||||
S = 0x1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue