Files
wgpu/wgpu-core/src/command/timestamp_writes.rs
T

15 lines
666 B
Rust

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