Cg Core Runtime API cgCreateParameterArray(3)
NAME
cgCreateParameterArray - creates a parameter array
SYNOPSIS
#include
CGparameter cgCreateParameterArray( CGcontext context,
CGtype type,
int length );
PARAMETERS
context The context to which the new parameter will be
added.
type The type of the new parameter.
length The length of the array being created.
RETURN VALUES
Returns the handle to the new parameter array.
DESCRIPTION
cgCreateParameterArray creates context level shared
parameter arrays. These parameters are primarily used by
connecting them to one or more program parameter arrays with
cgConnectParameter.
cgCreateParameterArray works similarly to cgCreateParameter,
but creates an array of parameters rather than a single
parameter.
EXAMPLES
CGcontext context = cgCreateContext();
CGparameter param = cgCreateParameterArray(context, CGFLOAT, 5);
ERORS
CGINVALIDVALUETYPEROR is generated if type is invalid.
CGINVALIDCONTEXTHANDLEROR is generated if context is
not a valid context.
HISTORY
cgCreateParameterArray was introduced in Cg 1.2.
SEE ALSO
cgCreateParameter, cgCreateParameterMultiDimArray,
cgDestroyParameter
Cg Toolkit 2.1 Last change: 1
|