ID3DXBaseEffect::GetParameterBySemantic method

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

Syntax

D3DXHANDLE GetParameterBySemantic(
  [in] D3DXHANDLE hParameter,
  [in] LPCSTR     pSemantic
);

Parameters

hParameter [in]

Type: D3DXHANDLE

Handle of the parameter, or NULL for top-level parameters. See Handles (Direct3D 9).

pSemantic [in]

Type: LPCSTR

String containing the semantic name.

Return value

Type: D3DXHANDLE

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

Requirements

Requirement Value
Header
D3DX9Shader.h
Library
D3dx9.lib

See also

ID3DXBaseEffect