Running Cg Programs on the CPU

Look like I have overseen this so far.

The secret is not the Cg program itself. To run a Cg program on the CPU you first have to compile it with CG_PROFILE_GENERIC. Then you can pass the handle to your program to the cgEvaluateProgram function. This one is responsible to execute the program on the CPU. But the usage is limited as you can’t access any buffers for input and output only up to 4 elements of an vector.
 
Back
Top