pub type QuerySetDescriptor<'a> = QuerySetDescriptor<Label<'a>>;
Expand description
Describes a QuerySet
.
For use with Device::create_query_set
.
Corresponds to WebGPU GPUQuerySetDescriptor
.
Aliased Type§
struct QuerySetDescriptor<'a> {
pub label: Option<&'a str>,
pub ty: QueryType,
pub count: u32,
}
Fields§
§label: Option<&'a str>
Debug label for the query set.
ty: QueryType
Kind of query that this query set should contain.
count: u32
Total count of queries the set contains. Must not be zero.
Must not be greater than [QUERY_SET_MAX_QUERIES
].
Implementations
Source§impl<L> QuerySetDescriptor<L>
impl<L> QuerySetDescriptor<L>
Sourcepub fn map_label<'a, K>(
&'a self,
fun: impl FnOnce(&'a L) -> K,
) -> QuerySetDescriptor<K>
pub fn map_label<'a, K>( &'a self, fun: impl FnOnce(&'a L) -> K, ) -> QuerySetDescriptor<K>
Takes a closure and maps the label of the query set descriptor into another.
Trait Implementations
Source§impl<L> Clone for QuerySetDescriptor<L>where
L: Clone,
impl<L> Clone for QuerySetDescriptor<L>where
L: Clone,
Source§fn clone(&self) -> QuerySetDescriptor<L>
fn clone(&self) -> QuerySetDescriptor<L>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<L> Debug for QuerySetDescriptor<L>where
L: Debug,
impl<L> Debug for QuerySetDescriptor<L>where
L: Debug,
Source§impl<'de, L> Deserialize<'de> for QuerySetDescriptor<L>where
L: Deserialize<'de>,
impl<'de, L> Deserialize<'de> for QuerySetDescriptor<L>where
L: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QuerySetDescriptor<L>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QuerySetDescriptor<L>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<L> Serialize for QuerySetDescriptor<L>where
L: Serialize,
impl<L> Serialize for QuerySetDescriptor<L>where
L: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more