Cg Core Runtime API cgGetArrayType(3)
NAME
cgGetArrayType - get the type of an array parameter
SYNOPSIS
#include
CGtype cgGetArrayType( CGparameter param );
PARAMETERS
param The array parameter handle.
RETURN VALUES
Returns the the type of the inner most array.
Returns CGUNKNOWNTYPE if an error occurs.
DESCRIPTION
cgGetArrayType returns the type of the members of an array.
If the given array is multi-dimensional, it will return the
type of the members of the inner most array.
EXAMPLES
CGcontext context = cgCreateContext();
CGparameter array = cgCreateParameterArray(context, CGFLOAT, 5);
CGtype arrayType = cgGetArrayType(array); /* This will return CGFLOAT */
ERORS
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
CGARAYPARAMEROR is generated if param is not an array
parameter.
HISTORY
cgGetArrayType was introduced in Cg 1.2.
SEE ALSO
cgGetArraySize, cgGetArrayDimension
Cg Toolkit 2.1 Last change: 1
|