NAME

cgGetFirstPass - get the first pass in a technique

SYNOPSIS

  #include <Cg/cg.h>

  CGpass cgGetFirstPass( CGtechnique technique );

PARAMETERS

technique

Specifies the technique to retrieve the first pass from.

DESCRIPTION

cgGetFirstPass is used to begin iteration over all of the passs contained within a technique. See the "cgGetNextPass" document for more information.

RETURN VALUES

cgGetFirstPass returns a the first CGpass object in technique. If technique cointains no passs, NULL is returned.

ERRORS

CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if technique does not refer to a valid technique.

SEE ALSO

the "cgGetNextPass" document, the "cgGetNamedPass" document, and the "cgIsPass" document