NAME
    cgIsParameterReferenced - determine if a program parameter is
    potentially referenced

SYNOPSIS
      #include <Cg/cg.h>

      CGbool cgIsParameterReferenced( CGparameter param );

PARAMETERS
    param   Specifies the handle of the parameter to check.

DESCRIPTION
    cgIsParameterReferenced returns CG_TRUE if param is a program parameter,
    and is potentially referenced (used) within the program. It otherwise
    returns CG_FALSE.

    Program parameters are those parameters associated directly with a
    CGprogram, whose handles are retrieved by calling, for example,
    cgGetNamedProgramParameter.

    The value returned by cgIsParameterReferenced is conservative, but not
    always exact. A return value of CG_TRUE indicates that the parameter may
    be used by its associated program. A return value of CG_FALSE indicates
    that the parameter is definintely not referenced by the program.

    If param is an aggregate program parameter (a struct or array), CG_TRUE
    is returned if any of param's children are potentially referenced by the
    program.

    If param is a leaf parameter and the return value is CG_FALSE,
    cgGetParameterResource may return CG_INVALID_VALUE for this parameter.

RETURN VALUES
    Returns CG_TRUE if param is a program parameter, and is potentially
    referenced by the program.

    Returns CG_FALSE otherwise.

ERRORS
    CG_INVALID_PARAM_HANDLE_ERROR is generated if the handle param is
    invalid.

SEE ALSO
    the cgGetNamedProgramParameter manpage, the cgIsParameterUsed manpage,
    the cgGetParameterResource manpage

