Cg Core Runtime API cgGetTypeBase(3)
NAME
cgGetTypeBase - get the base type associated with a type
enumerant
SYNOPSIS
#include
CGtype cgGetTypeBase( CGtype type );
PARAMETERS
type The type enumerant.
RETURN VALUES
Returns the scalar base type of the enumerant type.
DESCRIPTION
cgGetTypeBase returns the base (scalar) type associated with
a type enumerant. For example, cgGetTypeBase(CGFLOAT3x4)
returns CGFLOAT. The base type for a non-numeric type such
as CGSTRING, CGSTRUCT, CGSAMPLER2D, or user-defined types
is simply the type itself.
EXAMPLES
to-be-written
ERORS
None.
HISTORY
cgGetTypeBase was introduced in Cg 1.5.
SEE ALSO
cgGetType, cgGetTypeClass, cgGetParameterType
Cg Toolkit 2.1 Last change: 1
|