IDXGISwapChain::GetFrameStatistics Method

Gets performance statistics about the last render frame.

Syntax

public:
HRESULT GetFrameStatistics(
         DXGI_FRAME_STATISTICS *pStats
)  

Parameters

pStats
Type: DXGI_FRAME_STATISTICS *

[out] A pointer to a DXGI_FRAME_STATISTICS structure for the frame statistics.

Return value

Type: HRESULT 

Returns one of the DXGI_ERROR values.

Remarks

You cannot use GetFrameStatistics for swap chains that both use the bit-block transfer (bitblt) presentation model and draw in windowed mode.

You can only use GetFrameStatistics for swap chains that either use the flip presentation model or draw in full-screen mode. You set the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value in the SwapEffect member of the DXGI_SWAP_CHAIN_DESC1 structure to specify that the swap chain uses the flip presentation model.

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