ID3D11Debug::GetSwapChain Method

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

Syntax

public:
HRESULT GetSwapChain(
         IDXGISwapChain **ppSwapChain
)  

Parameters

ppSwapChain
Type: IDXGISwapChain **

[out] Swap chain that the runtime will use for automatically calling IDXGISwapChain::Present.

Return value

Type: HRESULT 

This method returns one of the following Direct3D 11 return codes.

Remarks

The swap chain retrieved 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