Walkthrough: Capturing Graphics Information
For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.
This walkthrough demonstrates how to use the Visual Studio Graphics Diagnostics to manually capture graphics information from a Direct3D app.
This walkthrough illustrates these tasks:
Hooking Graphics Diagnostics to your app
Capturing graphics information
To use the Graphics Diagnostics tools, you first have to capture the graphics information that it relies on. To enable capture, use the Start Diagnostics command to hook Graphics Diagnostics to your app when it starts.
In Visual Studio, load a project or solution file for the app that you want to capture graphics information from.
On the Graphics Diagnostics toolbar, choose Start Diagnostics.
On the menu bar, choose File, Open, Project/Solution. The Open Project dialog box appears.
Instead of a project or solution file, specify the executable file for the app that you want to capture graphics information from, and then choose Open.
On the menu bar, choose Debug, Graphics, Start Diagnostics.
After you start the app and it is rendering frames, you can capture graphics information.
On the Graphics Diagnostics toolbar, choose the Capture button.
With the app in focus, press Print Screen.
Each time you capture information about a frame, Graphics Diagnostics records the Direct3D events and associated state and adds that data to a graphics log. A new graphics log is created for each Graphics Diagnostics session. For information about graphics logs, see Overview.
This walkthrough demonstrated how to capture graphics information manually. As a next step, consider this option:
- Learn how to analyze captured graphics information using the Graphics Diagnostics tools. See Overview.