Cg Core Runtime API cgGetParameterType(3)
NAME
cgGetParameterType - get a program parameter's type
SYNOPSIS
#include
CGtype cgGetParameterType( CGparameter param );
PARAMETERS
param The parameter.
RETURN VALUES
Returns the type enumerant of param.
Returns CGUNKNOWNTYPE if an error occurs.
DESCRIPTION
cgGetParameterType allows the application to retrieve the
type of a parameter in a Cg program. This type is necessary
for the application to be able to supply the program's
inputs and use the program's outputs.
cgGetParameterType will return CGSTRUCT if the parameter is
a struct and CGARAY if the parameter is an array.
Otherwise it will return the data type associated with the
parameter.
EXAMPLES
to-be-written
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
HISTORY
cgGetParameterType was introduced in Cg 1.1.
SEE ALSO
cgGetType, cgGetParameterBaseType, cgGetTypeString,
cgGetParameterClass
Cg Toolkit 2.1 Last change: 1
|