NAME

cgGetPassName - get a technique pass's name

SYNOPSIS

  #include <Cg/cg.h>

  const char * cgGetPassName( CGpass pass );

PARAMETERS

pass

Specifies the pass.

DESCRIPTION

cgGetPassName allows the application to retrieve the name of a pass in a Cg program. This name can be used later to retrieve the pass from the program using cgGetNamedPass.

RETURN VALUES

Returns the null-terminated name string for the pass.

Returns null if pass is invalid.

ERRORS

CG_INVALID_PASS_HANDLE_ERROR is generated if pass does not refer to a valid pass.

SEE ALSO

the "cgGetNamedPass" document, the "cgGetFirstPass" document, and the "cgGetNextPass" document,