IDirect3DDevice9::GetSwapChain method (d3d9.h)

Gets a pointer to a swap chain.

Syntax

HRESULT GetSwapChain(
  [in] UINT                iSwapChain,
  [in] IDirect3DSwapChain9 **pSwapChain
);

Parameters

[in] iSwapChain

Type: UINT

The swap chain ordinal value. For more information, see NumberOfAdaptersInGroup in D3DCAPS9.

[in] pSwapChain

Type: IDirect3DSwapChain9**

Pointer to an IDirect3DSwapChain9 interface that will receive a copy of swap chain.

Return value

Type: HRESULT

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

Requirement Value
Target Platform Windows
Header d3d9.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DDevice9