Cg.cgCreateProgram Method
Compiles and creates a Cg program.
Parameters
-
context
- Current Cg context.
-
type
- Type of source to use.
-
source
- Source Cg code.
-
profile
- Profile to use for compiling the program.
-
entry
- Entry point of the specified Cg source. If null, then 'main' is assumed.
-
args
- Optional args to pass to the compiler.
Return Value
Handle to the newly created Cg program.
See Also
Cg Class | Tao.Cg Namespace