Per-Sample Processing

Revision as of 23:13, 30 September 2012 by Alfonse (Talk | contribs) (Alfonse moved page Per-Sample Operations to Per-Sample Processing without leaving a redirect: Wrong name.)

Jump to: navigation, search

Per-Sample Processing is a stage of the OpenGL rendering pipeline, where fragment data output from a Fragment Shader is processed and written to various buffers. There are a number of operations that are performed in the order below.

Pixel ownership test

Scissor test

Multisample operations

Stencil test

Depth test

Occlusion query updating

Fragments at this point are considered to have passed any conditional tests. Thus, their outputs will be written to one or more buffers (Write Masks not withstanding). As such, this is the point where the fragment is counted for Occlusion Query counters. If an occlusion query of type GL_SAMPLES_PASSED is active, then the query will be incremented every time a fragment hits this stage.


sRGB conversion


Logic operations

Write mask