?/TD>
Microsoft DirectX 9.0

ID3DXEffect::Pass Method


Applies the state settings for the specified pass of the technique.

Syntax

HRESULT Pass(      

    UINT iPass );

Parameters

iPass
[in] Identifies the pass to be applied.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DXERR_INVALIDDATAThe data is invalid.
E_OUTOFMEMORYMicrosoft?Direct3D?could not allocate sufficient memory to complete the call.


Remarks

After calling Pass, the application must draw the geometry to the device to which the effect is set.

See Also

ID3DXEffect::Begin, ID3DXEffect::End


© 2002 Microsoft Corporation. All rights reserved.