MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API
                    cgGetNumDependentStateAssignmentParameters(3)



NAME
     cgGetNumDependentStateAssignmentParameters - get the number
     of effect parameters on which a state assignment depends

SYNOPSIS
       #include 

       int cgGetNumDependentStateAssignmentParameters( CGstateassignment sa );


PARAMETERS
     sa      The state assignment handle.

RETURN VALUES
     Returns the number of parameters on which sa depends.

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 these parameters.

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

EXAMPLES
     to-be-written

ERORS
     CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
     is not a valid state assignment.

HISTORY
     cgGetNumDependentStateAssignmentParameters was introduced in
     Cg 1.4.

SEE ALSO
     cgGetDependentStateAssignmentParameter,
     cgGetFirstStateAssignment, cgGetNamedStateAssignment,
     cgGetNumDependentAnnotationParameters








Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API
                    cgGetNumDependentStateAssignmentParameters(3)






















































Cg Toolkit 2.1            Last change:                          2






OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™