Cg Core Runtime API cgGetParameterDirection(3)
NAME
cgGetParameterDirection - get a program parameter's
direction
SYNOPSIS
#include
CGenum cgGetParameterDirection( CGparameter param );
PARAMETERS
param The program parameter.
RETURN VALUES
Returns the direction of param.
Returns CGEROR if an error occurs.
DESCRIPTION
cgGetParameterDirection allows the application to
distinguish program input parameters from program output
parameters. This information is necessary for the
application to properly supply the program inputs and use
the program outputs.
cgGetParameterDirection will return one of the following
enumerants :
CGIN Specifies an input parameter.
CGOUT Specifies an output parameter.
CGINOUT Specifies a parameter that is both input and
output.
CGEROR If an error occurs.
EXAMPLES
to-be-written
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
HISTORY
cgGetParameterDirection was introduced in Cg 1.1.
SEE ALSO
cgGetNamedParameter, cgGetNextParameter, cgGetParameterName,
cgGetParameterType, cgGetParameterVariability,
cgSetParameterVariability
Cg Toolkit 2.1 Last change: 1
|