mask-state
GPU-accelerated rendering » GPU state

Prev:blend-state
Next:triangle-cull-state


Vocabulary
gpu.state

Class description
The mask-state controls what parts of the framebuffer are written to.
The color slot is a sequence of four boolean values specifying whether the red, green, blue, and alpha channels of the color buffer will be written to.
The depth slot is a boolean value specifying whether the depth buffer will be written to.
The stencil-front and stencil-back slots are integer values that indicate which bits of the stencil buffer will be written to for front- and back-facing triangles, respectively.


See also
<mask-state>, get-mask-state

Definition


Methods