pub enum QueryType {
Occlusion,
PipelineStatistics(PipelineStatisticsTypes),
Timestamp,
}
Expand description
Type of query contained in a QuerySet.
Corresponds to WebGPU GPUQueryType
.
Variants§
Occlusion
Query returns a single 64-bit number, serving as an occlusion boolean.
PipelineStatistics(PipelineStatisticsTypes)
Query returns up to 5 64-bit numbers based on the given flags.
See PipelineStatisticsTypes
’s documentation for more information
on how they get resolved.
Features::PIPELINE_STATISTICS_QUERY
must be enabled to use this query type.
Timestamp
Query returns a 64-bit number indicating the GPU-timestamp where all previous commands have finished executing.
Must be multiplied by Queue::get_timestamp_period
to get
the value in nanoseconds. Absolute values have no meaning,
but timestamps can be subtracted to get the time it takes
for a string of operations to complete.
Features::TIMESTAMP_QUERY
must be enabled to use this query type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryType
impl<'de> Deserialize<'de> for QueryType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for QueryType
Auto Trait Implementations§
impl Freeze for QueryType
impl RefUnwindSafe for QueryType
impl Send for QueryType
impl Sync for QueryType
impl Unpin for QueryType
impl UnwindSafe for QueryType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)