cg function
Cg provides a set of built-in functions and structures to simplify GPU programming. These functions are similar in spirit to the C standard library functions, providing a convenient set of common functions. The Cg Standard Library functions are documented in the Cg Standard Library index. Vertex Program Profiles A few features of the Cg language that are specific to vertex program profiles are required to be implemented in the same manner for all vertex program profiles.