IDXGISwapChain::GetLastPresentCount Method

Gets the number of times that IDXGISwapChain::Present or IDXGISwapChain1::Present1 has been called.

Syntax

public:
HRESULT GetLastPresentCount(
         UINT *pLastPresentCount
)  

Parameters

pLastPresentCount
Type: UINT *

[out] A pointer to a variable that receives the number of calls.

Return value

Type: HRESULT 

Returns one of the DXGI_ERROR values.

Remarks

For info about presentation statistics for a frame, see DXGI_FRAME_STATISTICS.

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