Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Ends an active technique.
Syntax
HRESULT End();
Parameters
This method has no parameters.
Return value
Type: HRESULT
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.
Requirements
| Requirement | Value |
|---|---|
| Header |
|
| Library |
|
See also