Counters, queries, and predication

This topic covers stream-output counters, UAV counters, queries, and predication.

Stream output and UAV counters operate in Direct3D 12 in a similar method to Direct3D 11, although now memory for the counters must be allocated by the app, the driver does not do it. Queries in Direct3D 12 are more different from those in Direct3D 11, with the addition of fences and other processes that remove the need for some query types.

In this section

Topic Description
Stream Output Counters
Stream output is the ability of the GPU to write vertices to a buffer. The stream output counters monitor progress.
UAV Counters
UAV counters can be used to associate a 32-bit atomic counter with an unordered-access-view (UAV).
Queries
In Direct3D 12, queries are grouped into arrays of queries called a query heap. A query heap has a type which defines the valid types of queries that can be used with that heap.

Performance Measurement