ID3DXTextureShader::GetConstantElement method

Get a constant from the constant table.

Syntax

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

Parameters

hConstant [in]

Type: D3DXHANDLE

A handle to the array of constants. This value may not be NULL.

Index [in]

Type: UINT

Zero-based index of the element in the constant table.

Return value

Type: D3DXHANDLE

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

Requirement Value
Header
D3DX9Shader.h
Library
D3dx9.lib

See also

ID3DXTextureShader