mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Dependencies on `std` that still exist: * Locks * `std::error::Error` (waiting for Rust 1.81) * `std::os::raw::c_char` for FFI * `thread_local` and `Backtrace` in `snatch`
19 lines
754 B
Rust
19 lines
754 B
Rust
use alloc::sync::Arc;
|
|
|
|
use crate::id;
|
|
|
|
/// 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))]
|
|
pub struct PassTimestampWrites<QS = id::QuerySetId> {
|
|
/// 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>,
|
|
}
|
|
|
|
/// cbindgen:ignore
|
|
pub type ArcPassTimestampWrites = PassTimestampWrites<Arc<crate::resource::QuerySet>>;
|