Debian Codegraph @

third_party/rust/wgpu-core/src/command/timestamp_writes.rs

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