Cg Core Runtime API cgGetProgramDomainProgram(3)
NAME
cgGetProgramDomainProgram - get an indexed domain program of
a combined program
SYNOPSIS
#include
CGprofile cgGetProgramDomainProgram( CGprogram program,
int index );
PARAMETERS
program The handle of the combined program object.
index The index of the program's domain program to be
queried.
RETURN VALUES
Returns the program handle for the program with the given
domain index.
Returns 0 if an error occurs.
DESCRIPTION
A combined program consists of multiple domain programs.
For example, a combined program may contain a vertex domain
program and a fragment domain program.
cgGetProgramDomainProgram gets the indexed domain program of
the specified combined program.
If the program parameter is not a combined program and the
index is zero, program handle is simply returned as-is
without error.
EXAMPLES
/* This will enable all profiles for each domain in glslComboProgram */
int domains = cgGetNumProgramDomains(glslComboProgram);
for (int i=0; i |