NAME
    cgGetProgramDomainProfile - get the profile associated with a domain
    index

SYNOPSIS
      #include <Cg/cg.h>

      CGprofile cgGetProgramDomainProfile( CGprogram program,
                                           int index );

PARAMETERS
    program The handle of the combined program object.

    index   The index of the program's domain to be queried.

RETURN VALUES
    Returns the profile enumerant for the program with the given domain
    index.

    Returns CG_PROFILE_UNKNOWN if an error occurs.

DESCRIPTION
    cgGetProgramDomainProfile gets the profile enumerant from a combined
    program for the program at the given domain index.

EXAMPLES
    // This will enable all profiles for each domain in glslComboProgram int
    domains = cgGetProgramDomains(glslComboProgram); for (int i=0;
    i<domains; i++) { cgGLEnableProfile(
    cgGetProgramDomainProfile(glslComboProgram, i) ); }

    // This will enable the profile for the first program domain in
    glslComboProgram cgGLEnableProfile(
    cgGetProgramDomainProfile(glslComboProgram, 0) );

ERRORS
    CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program is not a valid
    program handle.

    CG_INVALID_PARAMETER_ERROR is generated if index is less than 0 or
    greater than or equal to the number of domains in program.

HISTORY
    cgGetProgramDomainProfile was introduced in Cg 1.5.

SEE ALSO
    cgGetNumProgramDomains, cgGetProfileDomain

