Enum vulkano::query::QueryType

source ·
#[non_exhaustive]
#[repr(i32)]
pub enum QueryType { Occlusion = 0, PipelineStatistics(QueryPipelineStatisticFlags), Timestamp = 2, AccelerationStructureCompactedSize = 1_000_150_000, AccelerationStructureSerializationSize = 1_000_150_001, AccelerationStructureSerializationBottomLevelPointers = 1_000_386_000, AccelerationStructureSize = 1_000_386_001, }
Expand description

The type of query that a query pool should perform.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Occlusion = 0

Tracks the number of samples that pass per-fragment tests (e.g. the depth test).

Used with the begin_query and end_query commands.

§

PipelineStatistics(QueryPipelineStatisticFlags)

Tracks statistics on pipeline invocations and their input data.

Used with the begin_query and end_query commands.

§

Timestamp = 2

Writes timestamps at chosen points in a command buffer.

Used with the write_timestamp command.

§

AccelerationStructureCompactedSize = 1_000_150_000

Queries the size of data resulting from a CopyAccelerationStructureMode::Compact operation.

Used with the write_acceleration_structures_properties command.

§

AccelerationStructureSerializationSize = 1_000_150_001

Queries the size of data resulting from a CopyAccelerationStructureMode::Serialize operation.

Used with the write_acceleration_structures_properties command.

§

AccelerationStructureSerializationBottomLevelPointers = 1_000_386_000

For a top-level acceleration structure, queries the number of bottom-level acceleration structure handles that will be written during a CopyAccelerationStructureMode::Serialize operation.

Used with the write_acceleration_structures_properties command.

§

AccelerationStructureSize = 1_000_386_001

Queries the total size of an acceleration structure.

Used with the write_acceleration_structures_properties command.

Implementations§

source§

impl QueryType

source

pub const fn result_len(&self) -> DeviceSize

Returns the number of QueryResultElements that are needed to hold the result of a single query of this type.

If the results are retrieved with WITH_AVAILABILITY enabled, then an additional element is required per query.

Trait Implementations§

source§

impl Clone for QueryType

source§

fn clone(&self) -> QueryType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for QueryType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&QueryType> for QueryType

source§

fn from(value: &QueryType) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.