Skip to content

Commit 0c362c0

Browse files
authored
extensions/khr/calibrated_device: Use self.handle instead of requiring vk::Device argument (#898)
When introducing this new `VK_KHR_calibrated_timestamps` extension based on `VK_EXT_calibrated_timestamps` in #890 in parallel to finalizing and merging the `Instance`/`Device` separation in #734, I seem to have missed an opportunity to use the newly available `self.handle` for this extension from `struct Device`, instead leaving an unnecessary `device: vk::Device` argument in place.
1 parent 736fa20 commit 0c362c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ash/src/extensions/khr/calibrated_timestamps.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ impl crate::khr::calibrated_timestamps::Device {
1212
#[inline]
1313
pub unsafe fn get_calibrated_timestamps(
1414
&self,
15-
device: vk::Device,
1615
info: &[vk::CalibratedTimestampInfoKHR<'_>],
1716
) -> VkResult<(Vec<u64>, u64)> {
1817
let mut timestamps = Vec::with_capacity(info.len());
1918
let mut max_deviation = mem::MaybeUninit::uninit();
2019
let max_deviation = (self.fp.get_calibrated_timestamps_khr)(
21-
device,
20+
self.handle,
2221
info.len() as u32,
2322
info.as_ptr(),
2423
timestamps.as_mut_ptr(),

0 commit comments

Comments
 (0)