ID3DXConstantTable::GetConstant method

Gets a constant by looking up its index.

Syntax

D3DXHANDLE GetConstant(
  [in] D3DXHANDLE hConstant,
  [in] UINT       Index
);

Parameters

hConstant [in]

Type: D3DXHANDLE

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]

Type: UINT

Zero-based index of the constant.

Return value

Type: D3DXHANDLE

Returns a unique identifier to the constant.

Remarks

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

Requirements

Requirement Value
Header
D3DX9Shader.h
Library
D3dx9.lib

See also

ID3DXConstantTable