MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                 cgGetNamedProgramParameter(3)



NAME
     cgGetNamedProgramParameter - get a program parameter by name

SYNOPSIS
       #include 

       CGparameter cgGetNamedProgramParameter( CGprogram program,
                                               CGenum namespace,
                                               const char * name );


PARAMETERS
     program     The program from which to retrieve the
                 parameter.

     namespace  Specifies the namespace of the parameter to
                 iterate through.  Currently CGPROGRAM and
                 CGLOBAL are supported.

     name        Specifies the name of the parameter to retrieve.

RETURN VALUES
     Returns the named parameter from the program.

     Returns NUL if the program has no parameter corresponding
     to name.

DESCRIPTION
     cgGetNamedProgramParameter is essentially identical to
     cgGetNamedParameter except it limits the search of the
     parameter to the name space specified by namespace.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDPROGRAMHANDLEROR is generated if program is
     not a valid program handle.

HISTORY
     cgGetNamedProgramParameter was introduced in Cg 1.2.

SEE ALSO
     cgGetNamedParameter











Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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