cgGetMatrixParameterOrder
Keywords: cgGetMatrixParameterOrder, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> cgGetMatrixParameterOrder - get the row or column order of a matrix parameter

> ## Synopsis

>     #include <Cg/cg.h>

>     CGenum cgGetMatrixParameterOrder( CGparameter param );

> ## Parameters

> param
>   The parameter.

> ## Return Values

> Returns CG_ROW_MAJOR for a row-major matrix parameter.

> Returns CG_COLUMN_MAJOR for a column-major matrix parameter.

> Returns CG_UNKNOWN for a parameter that is not a matrix.

> ## Description

> cgGetMatrixParameterOrder returns the row or column order of a matrix parameter.

> The Cg compiler supports #pragma pack_matrix(row_major) or #pragma pack_matrix(column_major) for specifying the order of matrix parameters. Row-major order is the Cg default.

> ## Examples

> to-be-written

> ## Errors

> CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter or param is not a matrix parameter.

> ## History

> cgGetMatrixParameterOrder was introduced in Cg 2.2.

> ## See Also

> cgGetMatrixParameter, cgGetMatrixSize