MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / compute_pass_timestamp_writes

Method compute_pass_timestamp_writes

native/shared/src/profiler.rs:204–212  ·  view source on GitHub ↗

Same as `pass_timestamp_writes` but for a compute pass descriptor.

(&mut self, label: &'static str)

Source from the content-addressed store, hash-verified

202
203 /// Same as `pass_timestamp_writes` but for a compute pass descriptor.
204 pub fn compute_pass_timestamp_writes(&mut self, label: &'static str) -> Option<wgpu::ComputePassTimestampWrites<'_>> {
205 let (b, e) = self.reserve_gpu_pair(label)?;
206 let qs = self.query_set.as_ref()?;
207 Some(wgpu::ComputePassTimestampWrites {
208 query_set: qs,
209 beginning_of_pass_write_index: Some(b),
210 end_of_pass_write_index: Some(e),
211 })
212 }
213
214 /// Resolve any pending GPU queries into the readback buffer. Call once
215 /// per frame, after all passes are encoded and before submit.

Callers 1

end_frame_with_sceneMethod · 0.80

Calls 1

reserve_gpu_pairMethod · 0.80

Tested by

no test coverage detected