mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
16 lines
587 B
Rust
16 lines
587 B
Rust
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>;
|