wgpu/api/query_set.rs
1use crate::*;
2
3/// Handle to a query set.
4///
5/// It can be created with [`Device::create_query_set`].
6///
7/// Corresponds to [WebGPU `GPUQuerySet`](https://gpuweb.github.io/gpuweb/#queryset).
8#[derive(Debug, Clone)]
9pub struct QuerySet {
10 pub(crate) inner: dispatch::DispatchQuerySet,
11}
12#[cfg(send_sync)]
13#[cfg(send_sync)]
14static_assertions::assert_impl_all!(QuerySet: Send, Sync);
15
16crate::cmp::impl_eq_ord_hash_proxy!(QuerySet => .inner);
17
18/// Describes a [`QuerySet`].
19///
20/// For use with [`Device::create_query_set`].
21///
22/// Corresponds to [WebGPU `GPUQuerySetDescriptor`](
23/// https://gpuweb.github.io/gpuweb/#dictdef-gpuquerysetdescriptor).
24pub type QuerySetDescriptor<'a> = wgt::QuerySetDescriptor<Label<'a>>;
25static_assertions::assert_impl_all!(QuerySetDescriptor<'_>: Send, Sync);