Microsoft DirectX 9.0

IDirect3DSwapChain9 Interface

Applications use the methods of the IDirect3DSwapChain9 interface to manipulate a swap chain.

IDirect3DSwapChain9 Members

GetBackBuffer Retrieves a back buffer from the swap chain of the device.

Retrieves the device associated with the swap chain.

GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetFrontBufferData Generates a copy of the swapchain's front buffer and places that copy in a system memory buffer provided by the application.

Retrieves the presentation parameters associated with a swap chain.

GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.


There is always at least one swap chain for each device, known as the implicit swap chain. However, an additional swap chain for rendering multiple views from the same device can be created by calling the IDirect3DDevice9::CreateAdditionalSwapChain method.

This interface, like all Component Object Model (COM) interfaces, inherits from the IUnknown interface.

The LPDIRECT3DSWAPCHAIN9 and PDIRECT3DSWAPCHAIN9 types are defined as pointers to the IDirect3DSwapChain9 interface.


Interface Information

Inherits fromIUnknown
Import libraryd3d9.lib
Minimum operating systems Windows 98

See Also


© 2002 Microsoft Corporation. All rights reserved.