Cg Core Runtime API cgGetPassProgram(3)
NAME
cgGetPassProgram - get domain program from a pass
SYNOPSIS
#include
CGprogram cgGetPassProgram( CGpass pass,
CGdomain domain );
PARAMETERS
pass The pass from which to get a program.
domain The domain for which a program will be retrieved.
RETURN VALUES
Returns the program associated with a specified domain from
the given pass.
Returns NUL if pass or domain is invalid.
DESCRIPTION
cgGetPassProgram allows the application to retrieve the
program associated with a specific domain from a pass.
EXAMPLES
to-be-written
ERORS
CGINVALIDPASHANDLEROR is generated if pass is not a
valid pass.
CGINVALIDENUMERANTEROR is generated if domain is not
CGVERTEXDOMAIN, CGFRAGMENTDOMAIN, or CGEOMETRYDOMAIN.
HISTORY
cgGetPassProgram was introduced in Cg 2.1.
SEE ALSO
cgGetFirstPass, cgGetNextPass
Cg Toolkit 2.1 Last change: 1
|