The Cg language is primarly modeled on ANSI C, but adopts some ideas from modern languages such as C++ and Java, and from earlier shading languages such as Renderman and the Standford shading language.
The language also introduces a few new ideas. In particular, it includes features designed to represent data flow in stream-processing architectures such as GPUs. Profiles which are specified at compile time, may subset certain features of the language, including the ability to implement loops and the precision at which certain computations are performed.
|This Article is a Stub - You can help CGSociety Wiki by expanding it.|