Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/profiler_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl GpuProfilerQuery {
/// Only ever returns `Some` for queries that were created using [`GpuProfiler::begin_pass_query`].
///
/// [`GpuProfiler::begin_pass_query`]: crate::GpuProfiler::begin_pass_query
pub fn render_pass_timestamp_writes(&self) -> Option<wgpu::RenderPassTimestampWrites> {
pub fn render_pass_timestamp_writes(&self) -> Option<wgpu::RenderPassTimestampWrites<'_>> {
self.timer_query_pair.as_ref().and_then(|query| {
(query.usage_state == QueryPairUsageState::ReservedForPassTimestampWrites).then(|| {
wgpu::RenderPassTimestampWrites {
Expand All @@ -89,7 +89,7 @@ impl GpuProfilerQuery {
/// Only ever returns `Some` for queries that were created using [`GpuProfiler::begin_pass_query`].
///
/// [`GpuProfiler::begin_pass_query`]: crate::GpuProfiler::begin_pass_query
pub fn compute_pass_timestamp_writes(&self) -> Option<wgpu::ComputePassTimestampWrites> {
pub fn compute_pass_timestamp_writes(&self) -> Option<wgpu::ComputePassTimestampWrites<'_>> {
self.timer_query_pair.as_ref().and_then(|query| {
(query.usage_state == QueryPairUsageState::ReservedForPassTimestampWrites).then(|| {
wgpu::ComputePassTimestampWrites {
Expand Down