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

ID3DXTextureShader::GetConstant Method


Gets a constant by looking up its index.

Syntax

D3DXHANDLE GetConstant(      

    D3DXHANDLE hConstant,     UINT Index );

Parameters

hConstant
[in] A handle 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 Value

Returns a unique identifier to the constant.

Remarks

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



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