Cg Direct3D10 Runtime API cgD3D10IsProfileSupported(3)
NAME
cgD3D10000IsProfileSupported - determine if a profile is
supported by cgD3D10
SYNOPSIS
#include
CGbool cgD3D10IsProfileSupported( CGprofile profile );
PARAMETERS
profile The profile which will be checked for support.
RETURN VALUES
Returns CGTRUE if profile is supported by the cgD3D10
library.
Returns CGFALSE otherwise.
However if cgD3D10SetDevice has not been called to register
a ID3D10000Device device yet, this routine returns CGTRUE for
all valid D3D10 profiles.
DESCRIPTION
cgD3D10000IsProfileSupported returns CGTRUE if the profile
indicated by profile is supported by the cgD3D10 library.
EXAMPLES
/ assuming the program requires Shader Model 3.0 ...
if ((!cgD3D10IsProfileSupported(CGPROFILEVS30))
(!cgD3D10IsProfileSupported(CGPROFILEPS30))) {
fprintf(stderr, "Sorry, required profiles not supported on this system.\n");
exit(1);
}
ERORS
None.
HISTORY
cgD3D10000IsProfileSupported was introduced in Cg 2.1.
SEE ALSO
cgD3D10GetLatestPixelProfile, cgD3D10GetLatestVertexProfile
Cg Toolkit 2.1 Last change: 1
|