wgpu/api/
query_set.rs
1use crate::*;
2
3#[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
18impl QuerySet {
19 #[cfg(custom)]
20 pub fn as_custom<T: custom::QuerySetInterface>(&self) -> Option<&T> {
22 self.inner.as_custom()
23 }
24}
25
26pub type QuerySetDescriptor<'a> = wgt::QuerySetDescriptor<Label<'a>>;
33static_assertions::assert_impl_all!(QuerySetDescriptor<'_>: Send, Sync);