IDXGISwapChain::GetDesc Method

Get a description of the swap chain.

Note

Starting with Direct3D 11.1, we recommend not to use GetDesc anymore to get a description of the swap chain. Instead, use IDXGISwapChain1::GetDesc1.

Syntax

public:
HRESULT GetDesc(
         DXGI_SWAP_CHAIN_DESC *pDesc
)  

Parameters

pDesc
Type: DXGI_SWAP_CHAIN_DESC *

[out] A pointer to the swap-chain description (see DXGI_SWAP_CHAIN_DESC).

Return value

Type: HRESULT 

Returns one of the following DXGI_ERROR.

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGISwapChain

IDXGISwapChain Members