CaptureCurrentFrame

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Captures the remainder of the current frame to the graphics log file.

Syntax

void CaptureCurrentFrame();

Remarks

If another capture is currently in progress—such as a capture that was started by the BeginCapture function—then that capture is completed and recorded to the graphics log as a distinct frame. Immediately afterwards, graphics diagnostics begins capturing the remainder of the current frame, which is also recorded as a distinct frame. The current frame's end is marked by a call to present.

To capture a frame, you must prepare your app to capture and record graphics information—that is, you must have called Init through an instance of the VsgDbg class before you call CaptureCurrentFrame.

See also