NAME

cgGetParameterIndex - get an array member parameter's index

SYNOPSIS

  #include <Cg/cg.h>

  int cgGetParameterIndex(CGparameter param);

PARAMETERS

param

Specifies the parameter.

DESCRIPTION

cgGetParameterIndex returns an integer that represents the index of an array parameter.

For example if you have the following Cg program :

RETURN VALUES

Returns the index associated with an array member parameter. If the parameter is not in an array a -1 will be returned.

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.

SEE ALSO

the "cgGetArrayParameter" document