The vertex shader core (This Figure) performs most of the required calculations for each vertex. The vertex shader runs a program on each vertex of a 3D scene typically performing transform and lighting (T&L). The program is limited to 512 instructions with limited flow control. The instructions of the program work on vector data that is optimized for operations in length-4 vectors and smaller vectors.