Patent ID: 8395629

Claim:
A computer-implemented method comprising: receiving shader programming code that is configured to modify an appearance of an image, the shader programming code when received including at least first and second static expressions to be evaluated as part of executing the shader programming code; generating intermediate values from an evaluation of the first static expression and an evaluation of the second static expression; determining which intermediate values are duplicative by identifying a first plurality of intermediate values corresponding to the first static expression and a second plurality of intermediate values corresponding to at least the second static expression, wherein each of the first plurality of intermediate values are within a predetermined level of tolerance of each of the corresponding second plurality of intermediate values; associating the first and second static expressions with a single representation of the duplicative intermediate values, the associating providing that a single representation will be used in place of the first and second static expressions when the shader programming code is executed; and storing the single representation of the duplicative intermediate values in a buffer accessible to an image rendering application configured to execute the shader programming code.