Graphics Event Call Stack

The Graphics Event Call Stack, which is one of the Graphics Diagnostics tools in Visual Studio, can help you map the relationship between graphics events that were captured in the graphics log and your app's source code.

This is the Graphics Event Call Stack:

The call stack preceeding a DrawIndexed event.

Note

Starting in Visual Studio 2013 Update 3, the Graphics Diagnostics tool windows are hosted in an independent copy of the Visual Studio shell. This customized shell, called Graphics Analysis, eliminates unnecessary menus and options, but otherwise the graphics event call stack and workflow are the same as before. For more information about this change, see Graphics Diagnostics Overview.

Understanding the graphics event call stack

You can use the Graphics Event Call Stack to understand the flow of execution that led to a particular Direct3D event. It resembles the Visual Studio call stack window, except that instead of displaying the current call stack of the active thread in a running app, it displays the call stack as it existed when the selected Direct3D event occurred. From the Graphics Event Call Stack, you can jump to the call site of the selected Direct3D event to inspect the surrounding code.

By using the Graphics Event Call Stack to identify the code path from which a problem event originates, you can use your knowledge of the codebase to deduce potential sources of the problem, or you can add breakpoints in your app's source code so that you can use traditional debugging techniques to examine how the state of the app or event parameters are causing the event to misbehave. This examination can help you find problems in the source code that are only manifested as rendering problems.

Graphics Event Call Stack information

The call stack doesn't support pre-frame events or user-defined events. The graphics event call stack is displayed in a table format.

Column

Description

Name

A symbol that uniquely identifies the function that contains the call site. The debug symbol for the function is displayed when it's available; otherwise, the function offset is displayed.

File

The file name of the source code file or library file that contains the call site.

Location

The line number of the call site.

To understand the selected graphics event, you might need information about the Direct3D object that it's associated with. The Graphics Event Call Stack provides a link to this information.

See Also

Tasks

Walkthrough: Missing Objects Due to Vertex Shading