// d3d12umddi.h
typedef enum D3D12DDI_QUERY_TYPE {
D3D12DDI_QUERY_TYPE_OCCLUSION = 0,
D3D12DDI_QUERY_TYPE_BINARY_OCCLUSION = 1,
D3D12DDI_QUERY_TYPE_TIMESTAMP = 2,
D3D12DDI_QUERY_TYPE_PIPELINE_STATISTICS = 3,
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM0 = 4,
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM1 = 5,
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM2 = 6,
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM3 = 7,
D3D12DDI_QUERY_TYPE_0020_VIDEO_DECODE_STATISTICS = 8,
D3D12DDI_QUERY_TYPE_PIPELINE_STATISTICS1 = 10
} ;
View the official Windows Driver Kit DDI referenceNo description available.
A D3D12DDI_QUERY_TYPE enum value identifies the type of a query.
D3D12DDI_QUERY_TYPE_OCCLUSION:0The query is for depth/stencil occlusion counts.
D3D12DDI_QUERY_TYPE_BINARY_OCCLUSION:1The query is for a binary depth/stencil occlusion statistics.
This query type acts like D3D12DDI_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.
D3D12DDI_QUERY_TYPE_TIMESTAMP:2The query is for high definition GPU and CPU timestamps.
D3D12DDI_QUERY_TYPE_PIPELINE_STATISTICS:3The query type is for pre-D3D12 graphics pipeline statistics. See D3D11_DDI_QUERY_DATA_PIPELINE_STATISTICS.
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM0:4The query type is for stream output (SO) statistics for Stream0. Stream output is the ability of the GPU to write vertices to a buffer. The stream output counters monitor progress. See D3D10_DDI_QUERY_DATA_SO_STATISTICS
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM1:5The query type is for SO statistics for Stream1.
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM2:6The query type is for SO statistics for Stream2.
D3D12DDI_QUERY_TYPE_SO_STATISTICS_STREAM3:7The query type is for SO statistics for Stream3.
D3D12DDI_QUERY_TYPE_0020_VIDEO_DECODE_STATISTICS:8The query type is for video decode statistics. See D3D12DDI_QUERY_DATA_VIDEO_DECODE_STATISTICS_0022.
D3D12DDI_QUERY_TYPE_PIPELINE_STATISTICS1:10The query type is for graphics pipeline statistics. See D3D12DDI_QUERY_DATA_PIPELINE_STATISTICS1.
Queries are used to capture information from the GPU, such as statistics and status codes which can later be consumed directly on the GPU or on CPU.