Export (0) Print
Expand All
Expand Minimize

IDirect3DDevice9::GetSwapChain method

Gets a pointer to a swap chain.

Syntax


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

Parameters

iSwapChain [in]

Type: UINT

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

ppSwapChain [in]

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

Header

D3D9.h

Library

D3D9.lib

 

 

Community Additions

ADD
Show:
© 2014 Microsoft