| 1 | //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_present_wait.html> |
| 2 | |
| 3 | use crate::prelude::*; |
| 4 | use crate::vk; |
| 5 | |
| 6 | impl crate::khr::present_wait::Device { |
| 7 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkWaitForPresentKHR.html> |
| 8 | #[inline] |
| 9 | pub unsafe fn wait_for_present( |
| 10 | &self, |
| 11 | swapchain: vk::SwapchainKHR, |
| 12 | present_id: u64, |
| 13 | timeout: u64, |
| 14 | ) -> VkResult<()> { |
| 15 | (self.fp.wait_for_present_khr)(self.handle, swapchain, present_id, timeout).result() |
| 16 | } |
| 17 | } |