Enum wgpu::QueryType [−][src]
pub enum QueryType { PipelineStatistics(PipelineStatisticsTypes), Timestamp, }
Type of query contained in a QuerySet.
Variants
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.
Query returns a 64-bit number indicating the GPU-timestamp where all previous commands have finished executing.
Must be multiplied by [Device::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
impl<'de> Deserialize<'de> for QueryType
[src]
impl<'de> Deserialize<'de> for QueryType
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<QueryType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<QueryType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for QueryType
[src]
impl Serialize for QueryType
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for QueryType
impl RefUnwindSafe for QueryType
impl UnwindSafe for QueryType
impl UnwindSafe for QueryType