Name

cgGetPassProgram - get domain program from a pass

Synopsis

#include <Cg/cg.h>

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 NULL 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

Errors

CG_INVALID_PASS_HANDLE_ERROR is generated if pass is not a valid pass.

CG_INVALID_ENUMERANT_ERROR is generated if domain is not CG_VERTEX_DOMAIN, CG_FRAGMENT_DOMAIN, or CG_GEOMETRY_DOMAIN.

History

cgGetPassProgram was introduced in Cg 2.1.

See Also

cgGetFirstPass, cgGetNextPass