Tab: Geometry

The Geometry tab displays the pre-transform vertices, provides different visualization modes, shows vertex position values, and displays performance metrics for individual pipeline stages. This tab contains the following components:

Mesh Viewer

The Mesh Viewer displays vertices. You can manipulate the mesh in the following ways:

  • To rotate the mesh, click and drag with the mouse. The axes in the lower left-hand corner rotate as well, visualizing the current position of the mesh.

  • To pan the mesh:

    • Hold down the Shift key, then click and drag with the mouse

    • Click with the middle mouse button and drag with the mouse

  • To zoom in and out of the mesh, use the mouse scroll wheel

  • To save the image, right-click the image and select Save Image... from the context menu. You can save the image in JPEG, BMP, or PNG formats.

  • To export geometry, right-click the image and select Export Geometry... from the context menu. Graphics Frame Analyzer exports geometry in the Alias Wavefront Object (*.obj) format. You can export geometry for any available pipeline stage by selecting the stage in the Pipeline Stages pane below.

Erg Selector

The Erg Selector enables you to choose which erg’s geometry to display.
For example, suppose you selected ergs 1-9, 11, and 26 from the Visualization pane or the Scene Overview pane. The Erg Selector enables you to choose which of these ergs to use.

TIP

To select a single erg and remove other ergs from the list, right-click the erg in the Erg Selector and choose Select This Erg from the context menu.

Data Viewer

Select the Show Data Viewer check box to show vertex position values.

Mesh Viewer Controls

The Reset button restores the default camera view and zoom level.

The Cull drop-down list provides the following culling options:

  • Clockwise - disable rendering of triangles with clockwise-oriented vertices.
  • Counter-clockwise - disable rendering of triangles with vertices oriented in a counter-clockwise order.
  • None - disable culling to render all triangles.

The Coordinates drop-down list shows the following coordinate systems:

  • Left-handed

  • Right-handed

The Mode drop-down list shows the following visualization modes for the mesh viewer:

  • Wireframe - the vertices are connected to show a wireframe model.

  • Hidden Line - a wireframe model with hidden occluded lines.

  • Solid - the faces of each triangle are filled with a color, so that the object is drawn as a solid model.

  • Point Cloud - the vertices are shown as points. The brighter points indicate a greater density of vertices; use this visualization to identify duplicate vertices

  • Strip Coloring - the mesh is broken up into sets of triangles based on data localization. If adjacent triangles share two vertices, they fall into the same set. For visual differentiation, each set is randomly colored. The bigger the set size, the better re-use of the vertex cache you have. A mesh with many small sets may indicate that your application performs more vertex fetch and shader work than necessary.

Metadata

The Metadata pane shows:

  • information about the geometry, such as the topology and primitive count

  • status messages

Pipeline Stages

This pane displays performance metrics available for individual shaders and enables you to view geometry for different pipeline stages of the selected erg in the mesh viewer:

  • IA (Input Assembly) - shows the pre-transform geometry.

  • VS (Vertex Shader) - shows the post-transform geometry performed by the vertex shader.

  • HS/DS (Hull Shader/Domain Shader) - shows the results of tessellation performed by the hull/domain shaders.

  • GS (Geometry Shader) - shows the results of processing by the geometry shader.

Depending on the version of Microsoft* DirectX* used in your target application, the following pipeline stages are supported:  

Target Application

Supported Pipeline Stages

Microsoft* DirectX* 9/9Ex

IA

Microsoft* DirectX* 10/10.1

IA, VS, GS

Microsoft* DirectX* 11.0

IA, VS, HS/DS, GS

By default, the Graphics Frame Analyzer displays geometry for the IA pipeline stage. To toggle between different stages used by the selected erg, do one of the following:

  • Select the stage in the Pipeline Stage pane.
  • Use Left Arrow and Right Arrow buttons to sequentially go from stage to stage.
  • Click and drag with the mouse to scrub through different stages.

The pipeline stages have the following color-coded indication:

  • Dark-blue border highlights the currently selected pipeline stage.
  • White text indicates that geometry data is available for this pipeline stage.
  • Gray text indicates that the stage is unavailable.

TIP

When you switch between ergs, the Graphics Frame Analyzer tries to keep your last pipeline stage selection. If this stage is unavailable for the selected erg, the default IA stage is displayed.

See Also

Exporting Geometry with Graphics Frame Analyzer

For more complete information about compiler optimizations, see our Optimization Notice.