> ## Name

> cgSetParameterSemantic - set a program parameter's semantic

> ## Synopsis

>     #include <Cg/cg.h>

>     void cgSetParameterSemantic( CGparameter param,
>                                  const char * semantic );

> ## Parameters

> param
>   The program parameter.
> semantic
>   The semantic.

> ## Return Values

> None.

> ## Description

> cgSetParameterSemantic allows the application to set the semantic of a parameter in a Cg program.

> ## Examples

> to-be-written

> ## Errors

> CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.

> CG_INVALID_PARAMETER_ERROR is generated if param is not a leaf node, or if the semantic string is NULL.

> ## History

> cgSetParameterSemantic was introduced in Cg 1.2.

> ## See Also

> cgGetParameterSemantic, cgGetSemanticCasePolicy, cgSetSemanticCasePolicy, cgGetParameterResource, cgGetParameterResourceIndex, cgGetParameterName, cgGetParameterType