Reference (Programmatic Capture)


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Reference (Programmatic Capture).

Graphics Diagnostics supports programmatic control over its capture features, through the programmatic capture API. You can use this API to toggle and add messages to the graphics diagnostics HUD (Head-Up Display), initialize and create graphics log files, and capture graphics information.


VsgDbg ClassRepresents the interface through which the in-app component of graphics diagnostics is controlled programmatically.

Preprocessor Symbols

DONT_SAVE_VSGLOG_TO_TEMPDefines by its presence whether the graphics log file is saved to the user's temporary files directory.
VSG_DEFAULT_RUN_FILENAMEDefines the default file name of the graphics log file.
VSG_NODEFAULT_INSTANCEDefines by its presence whether a default instance of the VsgDbg class is provided.
Capturing Graphics InformationShows how to capture graphics information from your DirectX-based app so that you can use Visual Studio Graphics Diagnostics tools to diagnose rendering problems.
OverviewShows how Graphics Diagnostics can help you debug rendering errors in DirectX games and apps.