Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets a swap chain that the runtime will use for automatically calling IDXGISwapChain::Present.
Syntax
HRESULT SetSwapChain(
[in, optional] IDXGISwapChain *pSwapChain
);
Parameters
[in, optional] pSwapChain
Type: IDXGISwapChain*
Swap chain that the runtime will use for automatically calling IDXGISwapChain::Present; must have been created with the DXGI_SWAP_EFFECT_SEQUENTIAL swap-effect flag.
Return value
Type: HRESULT
This method returns one of the following Direct3D 11 Return Codes.
Remarks
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11sdklayers.h |
Library | D3D11.lib |