pub struct QuerySet {
pub(crate) inner: DispatchQuerySet,
}Expand description
Handle to a query set.
A QuerySet is an opaque, mutable storage location for the results of queries:
which are small pieces of information extracted from other operations such as render passes.
See QueryType for what types of information can be collected.
Each query writes data into one or more result slots in the QuerySet, which must be created
with a sufficient number of slots for that usage. Each result slot is a an unsigned 64-bit
number.
Using queries consists of the following steps:
- Create a
QuerySetof the appropriate type and number of query result slots usingDevice::create_query_set(). - Pass the
QuerySetto the commands which will write to it. SeeQueryTypefor the possible commands. - Execute the command
CommandEncoder::resolve_query_set(). This converts the opaque data stored in aQuerySetintou64s stored in aBuffer. - Make use of that buffer, such as by copying its contents to the CPU or reading it from a compute shader.
Corresponds to WebGPU GPUQuerySet.
Fields§
§inner: DispatchQuerySetImplementations§
Trait Implementations§
Source§impl Ord for QuerySet
impl Ord for QuerySet
Source§impl PartialOrd for QuerySet
impl PartialOrd for QuerySet
impl Eq for QuerySet
Auto Trait Implementations§
impl Freeze for QuerySet
impl !RefUnwindSafe for QuerySet
impl Send for QuerySet
impl Sync for QuerySet
impl Unpin for QuerySet
impl !UnwindSafe for QuerySet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more