| CPC G06T 15/005 (2013.01) [G06T 1/20 (2013.01)] | 17 Claims |

|
1. A computing device, comprising:
a central processing unit (CPU);
a network interface to connect the CPU to a network of CPUs; and
a graphics processing unit (GPU) including a memory to store code for multiple instances of a shader, including multiple instances of a primary shader function to compute instance-specific values, and a single instance of a shared function to compute a value used by the multiple instances of the shader and store the computed value in a shared memory for access by the multiple instances of the shader, the shared function identified based on a determination that code for the shared function is to access only data from a constant buffer; and
a graphics execution unit to execute the multiple instances, wherein to execute the multiple instances includes each of the multiple instances of the primary shader function to call the instance of the shared function to receive access to the computed value for use in computing the instance-specific values.
|