IDXGISwapChain::GetFrameStatistics method
Gets performance statistics about the last render frame.
Syntax
HRESULT GetFrameStatistics( [out] DXGI_FRAME_STATISTICS *pStats );
Parameters
- pStats [out]
-
Type: DXGI_FRAME_STATISTICS*
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 |
|
|---|---|
|
Library |
|
See also
Show: