Gets performance statistics about the last render frame.
public:
HRESULT GetFrameStatistics(
DXGI_FRAME_STATISTICS *pStats
)
pStats
Type: DXGI_FRAME_STATISTICSÂ *
[out] A pointer to a DXGI_FRAME_STATISTICS structure for the frame statistics.
Type: HRESULTÂ
Returns one of the DXGI_ERROR values.
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.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).