IDirect3DSwapChain9Ex interface

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


The IDirect3DSwapChain9Ex interface has these methods.

Method Description
IDirect3DSwapChain9Ex::GetDisplayModeEx Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.
IDirect3DSwapChain9Ex::GetLastPresentCount Returns the number of times the swapchain has been processed.


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 CreateAdditionalSwapChain method.

This interface, like all COM interfaces, inherits from the IUnknown interface.

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

IDirect3DSwapChain9Ex objects are returned as a pointer to an IDirect3DSwapChain9 object when GetSwapChain is called on an instance of IDirect3DDevice9Ex. The IDirect3DSwapChain9Ex interface is obtained by calling QueryInterface on the instance of IDirect3DSwapChain9 that was returned by GetSwapChain.


Target Platform Windows
Header d3d9.h

See Also

Direct3D Interfaces

Feature Summary (Direct3D 9 for Windows Vista)