ID3DXEffect::EndPass

End an active pass.

HRESULT EndPass();

Parameters

None.

Return Values

This method always returns the value S_OK.

Remarks

An application signals the end of rendering an active pass by calling ID3DXEffect::EndPass. Each ID3DXEffect::EndPass must be part of a matching pair of ID3DXEffect::BeginPass and ID3DXEffect::EndPass calls.

Each matching pair of ID3DXEffect::BeginPass and ID3DXEffect::EndPass calls must be located within a matching pair of ID3DXEffect::Begin and ID3DXEffect::End calls.

If the application changes any effect state using any of the Effect::Setx methods inside of a ID3DXEffect::BeginPass/ID3DXEffect::EndPass matching pair, the application must call ID3DXEffect::CommitChanges before any DrawxPrimitive call to propagate state changes to the device before rendering.

Requirements

Header: Declared in D3dx9effect.h.