Same as `pass_timestamp_writes` but for a compute pass descriptor.
(&mut self, label: &'static str)
| 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. |
no test coverage detected