NAME

cgGetParameterSemantic - get a program parameter's semantic

SYNOPSIS

  #include <Cg/cg.h>

  const char * cgGetParameterSemantic( CGparameter param );

PARAMETERS

param

Specifies the program parameter.

DESCRIPTION

cgGetParameterName allows the application to retrieve the semantic of a parameter in a Cg program. If the parameter does not have a semantic assigned to it, an empty string will be returned.

RETURN VALUES

Returns the null-terminated semantic string for the parameter.

Returns null if an error occurs.

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.

SEE ALSO

the "cgGetParameterResource" document, the "cgGetParameterResourceIndex" document, the "cgGetParameterName" document, and the "cgGetParameterType" document