MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                   cgGetFirstPassAnnotation(3)



NAME
     cgGetFirstPassAnnotation - get the first annotation of a
     pass

SYNOPSIS
       #include 

       CGannotation cgGetFirstPassAnnotation( CGpass pass );


PARAMETERS
     pass    The pass from which to retrieve the annotation.

RETURN VALUES
     Returns the first annotation from the given pass.

     Returns NUL if the pass has no annotations or an error
     occurs.

DESCRIPTION
     The annotations associated with a pass can be retrieved
     using cgGetFirstPassAnnotation.  The remainder of the pass's
     annotations can be discovered by iterating through the
     parameters, calling cgGetNextAnnotation to get to the next
     one.

EXAMPLES
       CGannotation ann = cgGetFirstPassAnnotation( pass );
       while( ann )
       {
          /* do something with ann */
          ann = cgGetNextAnnotation( ann );
       }


ERORS
     CGINVALIDPASHANDLEROR is generated if pass is not a
     valid pass.

HISTORY
     cgGetFirstPassAnnotation was introduced in Cg 1.4.

SEE ALSO
     cgGetNamedPassAnnotation, cgGetNextAnnotation











Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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