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

> ## Name

> cgCreateTechnique - create a technique in an effect

> ## Synopsis

>     #include <Cg/cg.h>

>     CGtechnique cgCreateTechnique( CGeffect effect,
>                                    const char * name );

> ## Parameters

> effect
>   The effect to which the new technique will be added.
> name
>   The name for the new technique.

> ## Return Values

> Returns the handle to the new technique on success.

> Returns NULL if an error occurs.

> ## Description

> cgCreateTechnique adds a new technique to the specified effect.

> ## Examples

> to-be-written

> ## Errors

> CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect is not a valid effect.

> ## History

> cgCreateTechnique was introduced in Cg 1.5.

> ## See Also

> cgIsTechnique, cgCreatePass, cgCreateEffectParameter, cgCreateEffectParameterArray, cgCreateEffectParameterMultiDimArray