docs: fix up documentation for stencil ref value changes
Also fix and clarify depth/stencil/alpha documentation a bit.
This commit is contained in:
@@ -49,8 +49,9 @@ Non-CSO State
|
|||||||
|
|
||||||
These pieces of state are too small, variable, and/or trivial to have CSO
|
These pieces of state are too small, variable, and/or trivial to have CSO
|
||||||
objects. They all follow simple, one-method binding calls, e.g.
|
objects. They all follow simple, one-method binding calls, e.g.
|
||||||
``set_edgeflags``.
|
``set_blend_color``.
|
||||||
|
* ``set_stencil_ref`` sets the stencil front and back reference values
|
||||||
|
which are used as comparison values in stencil test.
|
||||||
* ``set_blend_color``
|
* ``set_blend_color``
|
||||||
* ``set_clip_state``
|
* ``set_clip_state``
|
||||||
* ``set_polygon_stipple``
|
* ``set_polygon_stipple``
|
||||||
|
@@ -11,9 +11,9 @@ they are all stored in one structure.
|
|||||||
|
|
||||||
During actual execution, the order of operations done on fragments is always:
|
During actual execution, the order of operations done on fragments is always:
|
||||||
|
|
||||||
|
* Alpha
|
||||||
* Stencil
|
* Stencil
|
||||||
* Depth
|
* Depth
|
||||||
* Alpha
|
|
||||||
|
|
||||||
Depth Members
|
Depth Members
|
||||||
-------------
|
-------------
|
||||||
@@ -28,15 +28,18 @@ func
|
|||||||
Stencil Members
|
Stencil Members
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
XXX document valuemask, writemask
|
|
||||||
|
|
||||||
enabled
|
enabled
|
||||||
Whether the stencil test is enabled. For the second stencil, whether the
|
Whether the stencil test is enabled. For the second stencil, whether the
|
||||||
two-sided stencil is enabled.
|
two-sided stencil is enabled. If two-sided stencil is disabled, the other
|
||||||
|
fields for the second array member are not valid.
|
||||||
func
|
func
|
||||||
The stencil test function. One of PIPE_FUNC.
|
The stencil test function. One of PIPE_FUNC.
|
||||||
ref_value
|
valuemask
|
||||||
Stencil test reference value; used for certain functions.
|
Stencil test value mask; this is ANDed with the value in the stencil
|
||||||
|
buffer and the reference value before doing the stencil comparison test.
|
||||||
|
writemask
|
||||||
|
Stencil test writemask; this controls which bits of the stencil buffer
|
||||||
|
are written.
|
||||||
fail_op
|
fail_op
|
||||||
The operation to carry out if the stencil test fails. One of
|
The operation to carry out if the stencil test fails. One of
|
||||||
PIPE_STENCIL_OP.
|
PIPE_STENCIL_OP.
|
||||||
|
Reference in New Issue
Block a user