ID3DXBaseEffect::GetPassByName method

Gets the handle of a pass by looking up its name.

Syntax

D3DXHANDLE GetPassByName(
  [in] D3DXHANDLE hTechnique,
  [in] LPCSTR     pName
);

Parameters

hTechnique [in]

Type: D3DXHANDLE

Handle of the parent technique. See Handles (Direct3D 9).

pName [in]

Type: LPCSTR

String containing the pass name.

Return value

Type: D3DXHANDLE

Returns the handle of the first pass inside the specified technique that has the specified name, or NULL if the name was not found. See Handles (Direct3D 9).

Requirements

Requirement Value
Header
D3DX9Effect.h
Library
D3dx9.lib

See also

ID3DXBaseEffect