?/TD> |
Microsoft DirectX 9.0 |
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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. D3DXERR_INVALIDDATA The data is invalid. E_OUTOFMEMORY Microsoft?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