NAME
cgGetFirstDependentParameter - get the first dependent parameter from a parameter
SYNOPSIS
#include <Cg/cg.h> CGparameter cgGetFirstDependentParameter(CGparameter param);PARAMETERS
- param
Specifies the parameter.
DESCRIPTION
cgGetFirstDependentParameter returns the first member dependent parameter associated with a given parameter. The rest of the members may be retrieved from the first member by iterating with the cgGetNextParameter() function.
Dependent parameters are parameters that have the same name as a given parameter but different resources. They only exist in profiles that have multiple resources associated with one parameter.
RETURN VALUES
cgGetFirstDependentParameter returns a handle to the first member parameter.
NULL is returned if param is not a struct or if some other error occurs.
ERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.
SEE ALSO
the "cgGetNextParameter" document, and the "cgGetFirstParameter" document