IDXGISwapChain interface (dxgi.h)
An IDXGISwapChain interface implements one or more surfaces for storing rendered data before presenting it to an output.
The IDXGISwapChain interface inherits from IDXGIDeviceSubObject. IDXGISwapChain also has these types of members:
The IDXGISwapChain interface has these methods.
Accesses one of the swap-chain's back buffers.
Get the output (the display monitor) that contains the majority of the client area of the target window.
Get a description of the swap chain.
Gets performance statistics about the last render frame.
Get the state associated with full-screen mode.
Gets the number of times that IDXGISwapChain::Present or IDXGISwapChain1::Present1 has been called.
Presents a rendered image to the user.
Changes the swap chain's back buffer size, format, and number of buffers. This should be called when the application window is resized.
Resizes the output target.
Sets the display state to windowed or full screen.
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.