NAME

cgSetParameterSemantic - set a program parameter's semantic

SYNOPSIS

  #include <Cg/cg.h>

  void cgGetParameterSemantic( CGparameter param, const char *semantic );

PARAMETERS

param

Specifies the program parameter.

semantic

Specifies the semantic.

DESCRIPTION

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

RETURN VALUES

None.

ERRORS

CG_INVALID_PARAM_HANDLE_ERROR is generated if the handle param is invalid.

CG_INVALID_PARAMETER_ERROR is generated if the parameter is not a leaf node or if the semantic string is NULL.

SEE ALSO

cgGetParameterResource, cgGetParameterResourceIndex, cgGetParameterName, and cgGetParameterType