Patent ID: 8542247

Claim:
A computer-implemented method for generating a compiled program configured to allow early culling operations related to one or more primitives in a graphics scene to be performed, the method comprising: generating a first portion of the compiled program that includes a first set of instructions specified in an uncompiled program for computing one or more culling attributes related to the one or more primitives and needed to perform the early culling operations related to the one or more primitives and a first set of input attribute identifiers specified in the first set of instructions; inserting culling instructions into the first portion of the compiled program that, when executed, generate a clip status that is based on the culling attributes associated with the one or more primitives and indicates whether the early culling operations related to the one or more primitives should be performed; and generating a second portion of the compiled program for performing one or more additional operations on the set of primitives, wherein the second portion includes a second set of instructions specified in the uncompiled program and a second set of input attribute identifiers specified in the second set of instructions.