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. In the event of an error NULL is returned.

DESCRIPTION

cgGetStateassignmentPass allows the application to retrieve a handle to the pass a given stateassignment belongs to.

EXAMPLES

to-be-written

ERRORS

CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR is generated if sa does not refer to a valid state assignment.

HISTORY

cgGetStateAssignmentPass was introduced in Cg 1.4.

SEE ALSO

function1text, function2text