16. The at least one non-transitory machine-readable storage medium of claim 15 , the instructions, when executed by the computing device cause the computing device to: identify one or more conditional statements in the compiled shader; and determine whether one or more portions of the compiled shader can be patched based on the one or more identified conditional statements.
15. At least one non-transitory machine-readable storage medium, that is not a transitory signal, comprising instructions that when executed by a computing device, cause the computing device to: determine whether one or more portions of a compiled shader can be patched in an executable format based on global constants referenced in the compiled shader having corresponding values in a global constant buffer and modified prior to execution of the compiled shader, the compiled shader to comprise instructions in the executable format that are ready for execution via a graphics processing unit (GPU) pipeline; generating one or more patched portions based on an optimization goal comprising replacing references corresponding to global constants in the compiled shader and modified prior to execution of the compiled shader with values of the global constants from the global constant buffer; and replace the one or more portions of the compiled shader with the one or more patched portions based on a determination that the one or more portions of the compiled shader can be patched; and patch the compiled shader between a first instance the GPU executes the compiled shader and a second instance the GPU executes the compiled shader.