NAME
cgD3D9TypeToSize - get the size of a CGtype enumerated type
SYNOPSIS
#include <Cg/cgD3D9.h> DWORD cgD3D9TypeToSize( CGtype type );PARAMETERS
- type
Member of the CGtype enumerated type whose size is to be returned.
RETURN VALUES
cgD3D9TypeToSize returns the size of type in terms of consecutive floating point values.
If the type does not have an inherent size, the return value is 0. Sampler types fall into this category.
DESCRIPTION
cgD3D9TypeToSize retrieves the size of a CGtype enumerated type in terms of consecutive floating point values.
If the type does not have an inherent size, the return value is 0. Sampler types fall into this category.
EXAMPLES
The following example code illustrates the use of cgD3D9TypeToSize:
// param is a CGparameter initialized earlier ... DWORD size = cgD3D9TypeToSize(cgGetParameterType(param));ERRORS
cgD3D9TypeToSize does not generate any errors.
orto-be-written
HISTORY
cgD3D9TypeToSize was introduced in Cg to-be-written.
SEE ALSO