ID3DXBaseEffect::GetParameterByName method

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

Syntax

D3DXHANDLE GetParameterByName(
  [in] D3DXHANDLE hParameter,
  [in] LPCSTR     pName
);

Parameters

hParameter [in]

Type: D3DXHANDLE

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

pName [in]

Type: LPCSTR

String containing the parameter name.

Return value

Type: D3DXHANDLE

Returns the handle of the specified parameter, or NULL if the index was invalid. See Handles (Direct3D 9).

Requirements

Requirement Value
Header
D3DX9Shader.h
Library
D3dx9.lib

See also

ID3DXBaseEffect