D3D12_QUERY_TYPE Enumeration

Specifies the type of query.

Syntax

typedef enum D3D12_QUERY_TYPE
{
    D3D12_QUERY_TYPE_OCCLUSION = 0,
    D3D12_QUERY_TYPE_BINARY_OCCLUSION = 1,
    D3D12_QUERY_TYPE_TIMESTAMP = 2,
    D3D12_QUERY_TYPE_PIPELINE_STATISTICS = 3,
    D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4,
    D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5,
    D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6,
    D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7,
    D3D12XBOX_QUERY_TYPE_PREDICATION_STATUS = 12
} D3D12_QUERY_TYPE;  

Constants

Constant Description
D3D12_QUERY_TYPE_OCCLUSION Indicates the query is for depth/stencil occlusion counts.
D3D12_QUERY_TYPE_BINARY_OCCLUSION Indicates the query is for a binary depth/stencil occlusion statistics. This query type acts like D3D12_QUERY_TYPE_OCCLUSION except that it returns simply a binary 0/1 result: 0 indicates that no samples passed depth and stencil testing, 1 indicates that at least one sample passed depth and stencil testing. This enables occlusion queries to not interfere with any GPU performance optimization associated with depth/stencil testing.
D3D12_QUERY_TYPE_TIMESTAMP Indicates the query is for high definition GPU and CPU timestamps.
D3D12_QUERY_TYPE_PIPELINE_STATISTICS Indicates the query type is for graphics pipeline statistics, refer to D3D12_QUERY_DATA_PIPELINE_STATISTICS.
D3D12_QUERY_TYPE_SO_STATISTICS_STREAM0 Stream 0 output statistics. In Direct3D 12 there is no single stream output (SO) overflow query for all the output streams. Apps need to issue multiple single-stream queries, and then correlate the results. Stream output is the ability of the GPU to write vertices to a buffer. The stream output counters monitor progress.
D3D12_QUERY_TYPE_SO_STATISTICS_STREAM1 Stream 1 output statistics.
D3D12_QUERY_TYPE_SO_STATISTICS_STREAM2 Stream 2 output statistics.
D3D12_QUERY_TYPE_SO_STATISTICS_STREAM3 Stream 3 output statistics.
D3D12XBOX_QUERY_TYPE_PREDICATION_STATUS Predication performance statistics.

Requirements

Header: Declared in d3d12_x.h.