?/TD>
Microsoft DirectX 9.0

ID3DXBaseEffect::GetParameterBySemantic Method


Gets the handle of a top-level parameter or a structure member parameter by looking up its semantic.

Syntax

D3DXHANDLE GetParameterBySemantic(      

    D3DXHANDLE hParent,     LPCSTR pSemantic );

Parameters

hParent
[in] Handle of the parent structure parameter, or NULL for top-level parameters. See Handles.
pSemantic
[in] String containing the semantic name or the semantic index cast to an LPCSTR.

Return Value

Returns the handle of the first parameter that matches the specified semantic, or NULL if the semantic was not found. See Handles.



© 2002 Microsoft Corporation. All rights reserved.