NAME

cgProgramProfile - get a program parameter's resource

SYNOPSIS

  #include <Cg/cg.h>

  CGprofile cgGetProgramProfile( CGprogram prog );

PARAMETERS

prog

Specifies the program.

DESCRIPTION

cgGetProgramProfile allows the application to retrieve the profile enumerant associated with the profile of the program.

RETURN VALUES

Returns the profile enumerant of prog. Returns CG_PROFILE_UNKNOWN if compilation has failed.

ERRORS

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog does not refer to a valid program.

SEE ALSO

the "cgGetProfile" document, the "cgGetProfileString" document