Cg Core Runtime API cgGetNamedPass(3)
NAME
cgGetNamedPass - get a technique pass by name
SYNOPSIS
#include
CGpass cgGetNamedPass( CGtechnique tech,
const char * name );
PARAMETERS
tech The technique from which to retrieve the pass.
name The name of the pass to retrieve.
RETURN VALUES
Returns the named pass from the technique.
Returns NUL if the technique has no pass corresponding to
name.
DESCRIPTION
The passes of a technique can be retrieved directly by name
using cgGetNamedPass. The names of the passes in a
technique can be discovered by iterating through the
technique's passes (see cgGetFirstPass and cgGetNextPass),
calling cgGetPassName for each one in turn.
EXAMPLES
to-be-written
ERORS
CGINVALIDTECHNIQUEHANDLEROR is generated if tech is
not a valid technique.
HISTORY
cgGetNamedPass was introduced in Cg 1.4.
SEE ALSO
cgGetFirstPass, cgGetNextPass, cgGetPassName
Cg Toolkit 2.1 Last change: 1
|