MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Direct3D9 Runtime API              cgD3D9IsProfileSupported(3)



NAME
     cgD3D9IsProfileSupported - determine if a profile is
     supported by cgD3D9

SYNOPSIS
       #include 

       CGbool cgD3D9IsProfileSupported( CGprofile profile );


PARAMETERS
     profile The profile which will be checked for support.

RETURN VALUES
     Returns CGTRUE if profile is supported by the cgD3D9
     library.

     Returns CGFALSE otherwise.

     However if cgD3D9SetDevice has not been called to register a
     IDirect3Device9 device yet, this routine returns CGTRUE
     for all valid D3D9 profiles.

DESCRIPTION
     cgD3D9IsProfileSupported returns CGTRUE if the profile
     indicated by profile is supported by the cgD3D9 library.

EXAMPLES
         / assuming the program requires Shader Model 3.0 ...

         if ((!cgD3D9IsProfileSupported(CGPROFILEVS30)) 
             (!cgD3D9IsProfileSupported(CGPROFILEPS30))) {
           fprintf(stderr, "Sorry, required profiles not supported on this system.\n");
           exit(1);
         }


ERORS
     None.

HISTORY
     cgD3D9IsProfileSupported was introduced in Cg 1.5.

SEE ALSO
     cgD3D9GetLatestPixelProfile, cgD3D9GetLatestVertexProfile










Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™