The fragment shader is a programmable unit that calculates the appearance of each fragment of a primitive. The fragment shader program specified in the RSW for the primitive is executed for each fragment produced by the rasterizer. The fragment shader program consists of very-long instruction words (VLIW), and can use any number of functional units in a single instruction.
This Figure shows the functional units available for the fragment-shader program.