d3d9.dllGetConstantElement
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXTextureShader::GetConstantElement Method


Get a constant from the constant table.

Syntax

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 Value

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.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.