Export (0) Print
Expand All
2 out of 4 rated this helpful - Rate this topic

IDXGISwapChain interface

An IDXGISwapChain interface implements one or more surfaces for storing rendered data before presenting it to an output.

Members

The IDXGISwapChain interface inherits from IDXGIDeviceSubObject. IDXGISwapChain also has these types of members:

Methods

The IDXGISwapChain interface has these methods.

MethodDescription
GetBuffer

Accesses one of the swap-chain's back buffers.

GetContainingOutput

Get the output (the display monitor) that contains the majority of the client area of the target window.

GetDesc

Get a description of the swap chain.

Note  Starting with Direct3D 11.1, we recommend not to use GetDesc anymore to get a description of the swap chain. Instead, use IDXGISwapChain1::GetDesc1.

GetFrameStatistics

Gets performance statistics about the last render frame.

GetFullscreenState

Get the state associated with full-screen mode.

GetLastPresentCount

Gets the number of times that IDXGISwapChain::Present or IDXGISwapChain1::Present1 has been called.

Present

Presents a rendered image to the user.

Note  Starting with Direct3D 11.1, we recommend not to use Present anymore to present a rendered image. Instead, use IDXGISwapChain1::Present1. For more info, see Remarks.

ResizeBuffers

Changes the swap chain's back buffer size, format, and number of buffers. This should be called when the application window is resized.

ResizeTarget

Resizes the output target.

SetFullscreenState

Sets the display state to windowed or full screen.

 

Remarks

You can create a swap chain by calling IDXGIFactory2::CreateSwapChainForHwnd, IDXGIFactory2::CreateSwapChainForCoreWindow, or IDXGIFactory2::CreateSwapChainForComposition. You can also create a swap chain when you call D3D11CreateDeviceAndSwapChain; however, you can then only access the sub-set of swap-chain functionality that the IDXGISwapChain interface provides.

Windows Phone 8: This API is supported.

Requirements

Header

DXGI.h

Library

DXGI.lib

See also

DXGI Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.