Class description comparison 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.