D3DXCONSTANT_DESC structure

A description of a constant in a constant table.

Syntax

typedef struct D3DXCONSTANT_DESC {
  LPCSTR              Name;
  D3DXREGISTER_SET    RegisterSet;
  UINT                RegisterIndex;
  UINT                RegisterCount;
  D3DXPARAMETER_CLASS Class;
  D3DXPARAMETER_TYPE  Type;
  UINT                Rows;
  UINT                Columns;
  UINT                Elements;
  UINT                StructMembers;
  UINT                Bytes;
  LPCVOID             DefaultValue;
} D3DXCONSTANT_DESC, *LPD3DXCONSTANT_DESC;

Members

Name

Type: LPCSTR

Name of the constant.

RegisterSet

Type: D3DXREGISTER_SET

Constant data type. See D3DXREGISTER_SET.

RegisterIndex

Type: UINT

Zero-based index of the constant in the table.

RegisterCount

Type: UINT

Number of registers that contain data.

Class

Type: D3DXPARAMETER_CLASS

Parameter class. See D3DXPARAMETER_CLASS.

Type

Type: D3DXPARAMETER_TYPE

Parameter type. See D3DXPARAMETER_TYPE.

Rows

Type: UINT

Number of rows.

Columns

Type: UINT

Number of columns.

Elements

Type: UINT

Number of elements in the array.

StructMembers

Type: UINT

Number of structure member sub-parameters.

Bytes

Type: UINT

Data size in number of bytes.

DefaultValue

Type: LPCVOID

Pointer to the default value.

Requirements

Requirement Value
Header
D3dx9shader.h

See also

D3DX Structures

D3DXCONSTANTTABLE_DESC