NAME
    cgGetDependentStateAssignmentParameter - returns one of the parameters
    that a state assignment's value depends on.

SYNOPSIS
      #include <Cg/cg.h>

      CGparameter cgGetDependentStateAssignmentParameter(CGstateassignment sa, int index);

PARAMETERS
    sa      Specifies the state assignment handle.

    index   Specifies the index of the parameter to return.

DESCRIPTION
    State assignments in CgFX files may include references to one or more
    effect parameters on the right hand side of the state assignment that
    are used for computing the state assignment's value.
    cgGetDependentStateAssignmentParameter returns one of these parameters,
    as indicated by the index given. the
    cgGetNumDependentStateAssignmentParameters manpage can be used to
    determine the total number of such parameters.

    This information can be useful for applications that wish to cache the
    values of annotations so that they can determine which annotations may
    change as the result of changing a particular parameter's value.

ERRORS
    CG_INVALID_ANNOTATION_HANDLE_ERROR is generated if ann does not refer to
    a valid annotation.

    CG_OUT_OF_ARRAY_BOUNDS_ERROR is generated if index is less than zero or
    greater than the number of dependent parameters, as returned by the
    cgGetNumDependentStateAssignmentParameters manpage.

SEE ALSO
    the cgGetDependentAnnotationParameter manpage, the cgGetFirstAnnotation
    manpage, the cgGetNamedAnnotation manpage, the
    cgGetNumDependentStateAssignmentParameters manpage

