d3d9.dllEnd
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXEffect::End Method


Ends an active technique.

Syntax

HRESULT End(VOID);

Return Value

This method always returns the value S_OK.



Remarks

All rendering in an effect is done within a matching pair of ID3DXEffect::Begin and ID3DXEffect::End calls. After all passes are rendered, ID3DXEffect::End must be called to end the active technique. The effect system responds by using the state block created when ID3DXEffect::Begin was called, to automatically restore the pipeline state before ID3DXEffect::Begin.

By default, the effect system takes care of saving state prior to a technique, and restoring state after a technique. If you choose to disable this save and restore functionality, see D3DXFX_DONOTSAVESAMPLERSTATE.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.