Once fragments are produced by rasterization, a number of per-fragment operations are performed prior to fragment shader execution. If a fragment is discarded during any of these operations, it will not be processed by any subsequent stage, including fragment shader execution.
Two fragment operations are performed in the following order:
If early per-fragment operations are enabled by the fragment shader, these tests are also performed in the following order: