1. A method, comprising: receiving instructions utilizing a programmable interface; controlling a shader to gather statistics based on the instructions; and outputting the statistics to memory utilizing the shader; wherein the statistics relate to operation of the shader and include a number of primitives, a number of vertices, and a number of total samples.