1. A method of writing pixels to a frame buffer comprising: computing a first color for a first pixel using a pixel shader; computing a second color for a second pixel using the pixel shader; buffering the first color and the second color in storage coupled to the pixel shader; if the first color is rendered for more than one render target, or the second color is rendered for more than one target, then writing the first color and the second color to the frame buffer in a target-major order, otherwise writing the first color and the second color to the frame buffer in a pixel-major order.