Microsoft DirectX 8.0 (C++)

ID3DXTechnique::Begin

Begins the application of the technique.

HRESULT Begin(
  UINT* pPasses
);

Parameters

pPasses
[out, retval] Pointer to a value indicating the number of passes that need to be taken to render the technique.

Return Values

This method always returns the value S_OK.

Remarks

This method returns the number of passes needed to render the technique. The application must incrementally call ID3DXTechnique::Pass for each pass before drawing the geometry to which the effect needs to be applied. After all passes are rendered, ID3DXTechnique::End must be called.

Requirements

  Header: Declared in D3dx8effect.h.
  Import Library: Use D3dx8.lib.

See Also

ID3DXTechnique::End, ID3DXTechnique::Pass