1. A microprocessor-implemented method comprising: receiving, by a microprocessor, image attributes that define a graphical state; and modifying, by a microprocessor; the graphical state to include references to functions, each function for producing one or more of the image attributes, and wherein the modified graphical state when processed by a rasterizer produces the graphical state.