NAME

cgGetParameterResourceIndex - get a program parameter's resource index

SYNOPSIS

  #include <Cg/cg.h>

  unsigned long cgGetParameterResourceIndex( CGparameter param );

PARAMETERS

param

Specifies the program parameter.

DESCRIPTION

cgGetParameterResourceIndex allows the application to retrieve the resource index for a parameter in a Cg program. This index value is only used with resources that are linearly addressable.

RETURN VALUES

Returns the resource index of param.

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

cgGetParameterResource, cgGetResource, cgGetResourceString