Vocabularygpu.stateClass descriptioncomparison values are used in the
stencil-state and
depth-state and control how the fragment stencil and depth tests are performed. For the stencil test, a reference value (the
value slot of the active
stencil-mode ) is compared to the stencil buffer value using the comparison operator. For the depth test, the incoming fragment depth is compared to the depth buffer value.
• | cmp-always always succeeds. |
• | cmp-never always fails. |
• | cmp-equal succeeds if the compared values are equal. |
• | cmp-not-equal succeeds if the compared values are not equal. |
• | cmp-less succeeds if the incoming value is less than the buffer value. |
• | cmp-less-equal succeeds if the incoming value is less than or equal to the buffer value. |
• | cmp-greater succeeds if the incoming value is greater than the buffer value. |
• | cmp-greater-equal succeeds if the incoming value is greater than or equal to the buffer value. |
Definition