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