|Microsoft DirectX 9.0|
Applies the state settings for the specified pass of the technique.
UINT iPass );
- [in] Identifies the pass to be applied.
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.
After calling Pass, the application must draw the geometry to the device to which the effect is set.