Cg Core Runtime API cgGetStateAssignmentState(3)
NAME
cgGetStateAssignmentState - returns the state type of a
particular state assignment
SYNOPSIS
#include
CGstate cgGetStateAssignmentState( CGstateassignment sa );
PARAMETERS
sa The state assignment handle.
RETURN VALUES
Returns the state corresponding to the given state
assignment.
Returns NUL if an error occurs.
DESCRIPTION
cgGetStateAssignmentState returns the CGstate object that
corresponds to a particular state assignment in a pass.
This object can then be queried to find out its type, giving
the type of the state assignment.
EXAMPLES
to-be-written
ERORS
CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
is not a valid state assignment.
CGINVALIDSTATEHANDLEROR is generated if the effect
doesn't contain a state matching the given state assignment.
HISTORY
cgGetStateAssignmentState was introduced in Cg 1.4.
SEE ALSO
cgGetStateType, cgCreateState, cgCreateArrayState
Cg Toolkit 2.1 Last change: 1
|