ID3DXTextureShader::GetConstantElement

Get a constant from the constant table.

D3DXHANDLE GetConstantElement(
  D3DXHANDLE hConstant,
  UINT Index
);

Parameters

hConstant
[in] A handle to the array of constants. This value may not be NULL.
Index
[in] Zero-based index of the element in the constant table.

Return Values

Returns a unique identifier to the constant.

Remarks

To get a constant that is not part of an array, use ID3DXTextureShader::GetConstant or ID3DXTextureShader::GetConstantByName.

Requirements

Header: Declared in D3dx9shader.h.