NAME
cgGetParameterIndex - get an array member parameter's index
SYNOPSIS
#include <Cg/cg.h> int cgGetParameterIndex( CGparameter param );PARAMETERS
- param
The parameter.
RETURN VALUES
Returns the index associated with an array member parameter. If the parameter is not in an array a -1 will be returned.
DESCRIPTION
cgGetParameterIndex returns an integer that represents the index of an array parameter.
EXAMPLES
For example if you have the following Cg program :
to-be-written
ERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if the handle param is invalid.
CG_ARRAY_PARAM_ERROR is generated if the handle param is not a handle to an array parameter.
HISTORY
cgGetParameterIndex was introduced in Cg 1.2.
SEE ALSO