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.

Timestamp

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 Clone for QueryType[src]

impl Copy for QueryType[src]

impl Debug for QueryType[src]

impl<'de> Deserialize<'de> for QueryType[src]

impl Serialize for QueryType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T