IDXGISwapChain2::GetSourceSize method

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

pWidth [out]

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.

pHeight [out]

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

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

Dxgi1_3.h

Library

Dxgi.lib

See also

IDXGISwapChain2
SetSourceSize

 

 

Show: