Struct wgpu::ComputePassTimestampWrites
source · pub struct ComputePassTimestampWrites<'a> {
pub query_set: &'a QuerySet,
pub beginning_of_pass_write_index: Option<u32>,
pub end_of_pass_write_index: Option<u32>,
}
Expand description
Describes the timestamp writes of a compute pass.
For use with ComputePassDescriptor
.
At least one of beginning_of_pass_write_index
and end_of_pass_write_index
must be Some
.
Corresponds to WebGPU GPUComputePassTimestampWrites
.
Fields§
§query_set: &'a QuerySet
The query set to write to.
beginning_of_pass_write_index: Option<u32>
The index of the query set at which a start timestamp of this pass is written, if any.
end_of_pass_write_index: Option<u32>
The index of the query set at which an end timestamp of this pass is written, if any.
Trait Implementations§
source§impl<'a> Clone for ComputePassTimestampWrites<'a>
impl<'a> Clone for ComputePassTimestampWrites<'a>
source§fn clone(&self) -> ComputePassTimestampWrites<'a>
fn clone(&self) -> ComputePassTimestampWrites<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ComputePassTimestampWrites<'a>
impl<'a> Send for ComputePassTimestampWrites<'a>
impl<'a> Sync for ComputePassTimestampWrites<'a>
impl<'a> Unpin for ComputePassTimestampWrites<'a>
impl<'a> !UnwindSafe for ComputePassTimestampWrites<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more