From 8b665073b8c334999626b4c5379a7543840452ae Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Tue, 15 Feb 2022 00:09:48 +0100 Subject: [PATCH] Fix get_timestamp_period type in docs (#2478) --- wgpu-types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 96a06094c9..711309df4e 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -204,7 +204,7 @@ bitflags::bitflags! { /// write out a timestamp. /// /// They must be resolved using [`CommandEncoder::resolve_query_sets`] into a buffer, - /// then the result must be multiplied by the timestamp period [`Device::get_timestamp_period`] + /// then the result must be multiplied by the timestamp period [`Queue::get_timestamp_period`] /// to get the timestamp in nanoseconds. Multiple timestamps can then be diffed to get the /// time for operations between them to finish. /// @@ -3794,7 +3794,7 @@ pub enum QueryType { /// Query returns a 64-bit number indicating the GPU-timestamp /// where all previous commands have finished executing. /// - /// Must be multiplied by [`Device::get_timestamp_period`] to get + /// Must be multiplied by [`Queue::get_timestamp_period`] to get /// the value in nanoseconds. Absolute values have no meaning, /// but timestamps can be subtracted to get the time it takes /// for a string of operations to complete.