IDirect3DDevice9::GetSwapChain

Gets a pointer to a swap chain.

HRESULT GetSwapChain(
  UINT  iSwapChain,
  IDirect3DSwapChain9 ** ppSwapChain
);

Parameters

iSwapChain
[in] The swap chain ordinal value. For more information, see NumberOfAdaptersInGroup in D3DCAPS9.
ppSwapChain
[in] Pointer to an IDirect3DSwapChain9 interface that will receive a copy of swap chain.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL.

Requirements

Header: Declared in D3d9.h.