ID3DXConstantTable::GetConstant

Gets a constant by looking up its index.

D3DXHANDLE GetConstant(
  D3DXHANDLE hConstant,
  UINT Index
);

Parameters

hConstant
[in] Unique identifier to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use NULL.
Index
[in] Zero-based index of the constant.

Return Values

Returns a unique identifier to the constant.

Remarks

To get a constant from an array of constants, use ID3DXConstantTable::GetConstantElement.

Requirements

Header: Declared in D3dx9shader.h.