NAME

cgGetStateAssignmentPass - get a state assignment's pass

SYNOPSIS

  #include <Cg/cg.h>

  CGpass cgGetStateAssignmentPass( CGstateassignment sa );

PARAMETERS

sa

Specifies the state assignment.

DESCRIPTION

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

RETURN VALUES

Returns a CGpass handle to the pass. In the event of an error NULL is returned.

ERRORS

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

SEE ALSO