NAME
cgGetNumDependentStateAssignmentParameters - get the number of effect parameters a state assignment depends on
SYNOPSIS
#include <Cg/cg.h> int cgGetNumDependentStateAssignmentParameters( CGstateassignment sa );PARAMETERS
- sa
The state assignment handle.
RETURN VALUES
to-be-written
DESCRIPTION
State assignments in CgFX passes 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. cgGetNumDependentStateAssignmentParameters returns the total number of such parameters. cgGetDependentStateAssignmentParameter can then be used to iterate over the parameters individually.
This information can be useful for applications that wish to cache the values of state assignments for customized state maangement so that they can determine which state assignments may change as the result of changing a parameter's value.
EXAMPLES
to-be-written
ERRORS
CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR is generated if sa does not refer to a valid state assignment.
HISTORY
cgGetNumDependentStateAssignmentParameters was introduced in Cg 1.4.
SEE ALSO
cgGetDependentStateAssignmentParameter, cgGetFirstStateAssignment, cgGetNamedStateAssignment, cgGetNumDependentAnnotationParameters