summaryrefslogtreecommitdiffstats
path: root/third_party/rust/d3d12/src/query.rs
blob: b5925c860bc3bb717dca05ac28f585b19488d76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::com::WeakPtr;
use winapi::um::d3d12;

#[repr(u32)]
#[derive(Debug, Copy, Clone)]
pub enum QueryHeapType {
    Occlusion = d3d12::D3D12_QUERY_HEAP_TYPE_OCCLUSION,
    Timestamp = d3d12::D3D12_QUERY_HEAP_TYPE_TIMESTAMP,
    PipelineStatistics = d3d12::D3D12_QUERY_HEAP_TYPE_PIPELINE_STATISTICS,
    SOStatistics = d3d12::D3D12_QUERY_HEAP_TYPE_SO_STATISTICS,
    // VideoDecodeStatistcs = d3d12::D3D12_QUERY_HEAP_TYPE_VIDEO_DECODE_STATISTICS,
    // CopyQueueTimestamp = d3d12::D3D12_QUERY_HEAP_TYPE_COPY_QUEUE_TIMESTAMP,
}

pub type QueryHeap = WeakPtr<d3d12::ID3D12QueryHeap>;