Name
cgGetStateAssignmentPass - get a state assignment's pass
Synopsis
#include <Cg/cg.h>
CGpass cgGetStateAssignmentPass( CGstateassignment sa );
Parameters
- sa
-
The state assignment.
Return Values
Returns a CGpass handle to the pass.
Returns NULL if an error occurs.
Description
cgGetStateAssignmentPass allows the application to retrieve a handle to the
pass to which a given stateassignment belongs.
Examples
to-be-written
Errors
CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR is generated if sa is not a valid state assignment.
History
cgGetStateAssignmentPass was introduced in Cg 1.4.
See Also
cgIsStateAssignment,
cgIsPass
|