wgpu_core/command/timestamp_writes.rs
1use alloc::sync::Arc;
2
3/// Describes the writing of timestamp values in a render or compute pass.
4#[derive(Clone, Debug, PartialEq, Eq)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6/// cbindgen:ignore
7pub struct PassTimestampWrites<QS = Arc<crate::resource::QuerySet>> {
8 /// The query set to write the timestamps to.
9 pub query_set: QS,
10 /// The index of the query set at which a start timestamp of this pass is written, if any.
11 pub beginning_of_pass_write_index: Option<u32>,
12 /// The index of the query set at which an end timestamp of this pass is written, if any.
13 pub end_of_pass_write_index: Option<u32>,
14}