jay_ash/extensions/khr/present_wait2.rs
1//! <https://docs.vulkan.org/refpages/latest/refpages/source/VK_KHR_present_wait2.html>
2
3use crate::prelude::*;
4use crate::vk;
5
6impl crate::khr::present_wait2::Device {
7 /// <https://docs.vulkan.org/refpages/latest/refpages/source/vkWaitForPresent2KHR.html>
8 #[inline]
9 pub unsafe fn wait_for_present2(
10 &self,
11 swapchain: vk::SwapchainKHR,
12 present_wait2_info: &vk::PresentWait2InfoKHR<'_>,
13 ) -> VkResult<()> {
14 unsafe {
15 (self.fp.wait_for_present2_khr)(self.handle, swapchain, present_wait2_info).result()
16 }
17 }
18}