IDXGISwapChain2::GetSourceSize method (dxgi1_3.h)

Gets the source region used for the swap chain.

Use GetSourceSize to get the portion of the swap chain from which the operating system presents. The source rectangle is always defined by the region [0, 0, Width, Height]. Use SetSourceSize to set this portion of the swap chain.

Syntax

HRESULT GetSourceSize(
  [out] UINT *pWidth,
  [out] UINT *pHeight
);

Parameters

[out] pWidth

The current width of the source region of the swap chain. This value can range from 1 to the overall width of the swap chain.

[out] pHeight

The current height of the source region of the swap chain. This value can range from 1 to the overall height of the swap chain.

Return value

This method can return error codes that are described in the DXGI_ERROR topic.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dxgi1_3.h
Library Dxgi.lib

See also

IDXGISwapChain2

SetSourceSize