ID3D11Debug::SetSwapChain Method

Sets a swap chain that the runtime will use for automatically calling IDXGISwapChain::Present.

Syntax

public:
HRESULT SetSwapChain(
         IDXGISwapChain *pSwapChain
)  

Parameters

pSwapChain
Type: IDXGISwapChain *

[in, optional] 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

Note

If you call this API in a Session 0 process, it returns DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.

The swap chain set by this method will only be used if D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP is set in the feature mask.

Requirements

Header: Declared in d3d11sdklayers.h.

Library: Use d3d11.lib.

See also

ID3D11Debug

ID3D11Debug Members