cgCreatePass
Keywords: cgCreatePass, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> cgCreatePass - create a pass in a technique

> ## Synopsis

>     #include <Cg/cg.h>

>     CGpass cgCreatePass( CGtechnique tech,
>                          const char * name );

> ## Parameters

> tech
>   The technique to which the new pass will be added.
> name
>   The name of the new pass.

> ## Return Values

> Returns the handle to the new pass on success.

> Returns NULL if an error occurs.

> ## Description

> cgCreatePass adds a new pass to the specified technique.

> ## Examples

> to-be-written

> ## Errors

> CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech is not a valid technique.

> ## History

> cgCreatePass was introduced in Cg 1.5.

> ## See Also

> cgCreateTechnique