// d3d12umddi.h
typedef enum D3D12DDI_QUERY_HEAP_TYPE {
D3D12DDI_QUERY_HEAP_TYPE_OCCLUSION = 0,
D3D12DDI_QUERY_HEAP_TYPE_TIMESTAMP = 1,
D3D12DDI_QUERY_HEAP_TYPE_PIPELINE_STATISTICS = 2,
D3D12DDI_QUERY_HEAP_TYPE_SO_STATISTICS = 3,
D3D12DDI_QUERY_HEAP_TYPE_0020_VIDEO_DECODE_STATISTICS = 4,
D3D12DDI_QUERY_HEAP_TYPE_0032_COPY_QUEUE_TIMESTAMP = 5,
D3D12DDI_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1 = 7
} ;
View the official Windows Driver Kit DDI referenceNo description available.
A D3D12DDI_QUERY_HEAP_TYPE enum value identifies the type of a query heap, which is an array of query results.
D3D12DDI_QUERY_HEAP_TYPE_OCCLUSION:0Returns 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_HEAP_TYPE_TIMESTAMP:1The heap is for high-performance timing data.
D3D12DDI_QUERY_HEAP_TYPE_PIPELINE_STATISTICS:2The heap is to contain pre-D3D12 graphics pipeline data. See D3D11_DDI_QUERY_DATA_PIPELINE_STATISTICS.
D3D12DDI_QUERY_HEAP_TYPE_SO_STATISTICS:3The heap is to contain stream output data. See D3D10_DDI_QUERY_DATA_SO_STATISTICS
D3D12DDI_QUERY_HEAP_TYPE_0020_VIDEO_DECODE_STATISTICS:4The heap is to contain video decode data. See D3D12DDI_QUERY_DATA_VIDEO_DECODE_STATISTICS_0022.
D3D12DDI_QUERY_HEAP_TYPE_0032_COPY_QUEUE_TIMESTAMP:5The heap is to contain timestamp queries emitted exclusively by copy command lists. Copy queue timestamps can only be queried from a copy command list, and a copy command list can't emit to a regular timestamp query Heap.
D3D12DDI_QUERY_HEAP_TYPE_PIPELINE_STATISTICS1:7The heap is to contain pipeline data. 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. Status structures associated with the query heap type define the resolved data that is returned.
pfnd3d12ddiCreateQueryHeap0001