ID3DXBaseEffect::GetParameterByName

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

D3DXHANDLE GetParameterByName(
  D3DXHANDLE hParameter,
  LPCSTR pName
);

Parameters

hParameter
[in] Handle of the parameter, or NULL for top-level parameters. See Handles.
pName
[in] String containing the parameter name.

Return Values

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

Requirements

Header: Declared in D3dx9shader.h.