Name
cgIsProfileSupported - determine if a profile is supported
Synopsis
#include <Cg/cg.h>
CGbool cgIsProfileSupported( CGprofile profile );
Parameters
- profile
-
The profile enumerant to test.
Return Values
Returns CG_TRUE if profile is supported.
Description
cgIsProfileSupported checks whether profile is supported by this
version of the Cg library.
Note that a profile may be recognized by Cg but not supported by the
platform on which the application is currently running. A graphics API
specific routine such as cgGLIsProfileSupported
must still be used to determine if the current GPU and driver combination
supports a given profile.
Examples
CGprofile profile;
int nProfiles;
int ii;
nProfiles = cgGetNumSupportedProfiles();
printf("NumSupportedProfiles: %i\n", nProfiles);
for (ii=0; ii<nProfiles; ++ii) {
profile = cgGetSupportedProfile(ii);
printf("IsProfileSupported %i: %s %i\n", ii, cgGetProfileString(profile),
cgIsProfileSupported(profile));
}
Errors
None.
History
cgIsProfileSupported was introduced in Cg 2.2.
See Also
cgGetNumSupportedProfiles,
cgGetSupportedProfile,
cgGetProfileProperty,
cgGLIsProfileSupported,
cgD3D9IsProfileSupported,
cgD3D10IsProfileSupported,
cgGetProfileString,
cgGetProfile
|