diff --git a/ash/src/extensions/khr/mod.rs b/ash/src/extensions/khr/mod.rs index b5313cdb2..552fb9e45 100644 --- a/ash/src/extensions/khr/mod.rs +++ b/ash/src/extensions/khr/mod.rs @@ -32,6 +32,7 @@ pub mod maintenance6; pub mod performance_query; pub mod pipeline_executable_properties; pub mod present_wait; +pub mod present_wait2; pub mod push_descriptor; pub mod ray_tracing_maintenance1; pub mod ray_tracing_pipeline; @@ -46,4 +47,4 @@ pub mod video_queue; pub mod wayland_surface; pub mod win32_surface; pub mod xcb_surface; -pub mod xlib_surface; +pub mod xlib_surface; \ No newline at end of file diff --git a/ash/src/extensions/khr/present_wait2.rs b/ash/src/extensions/khr/present_wait2.rs new file mode 100644 index 000000000..20b194462 --- /dev/null +++ b/ash/src/extensions/khr/present_wait2.rs @@ -0,0 +1,18 @@ +//! + +use crate::VkResult; +use crate::vk; + +impl crate::khr::present_wait2::Device { + /// + #[inline] + pub unsafe fn wait_for_present2( + &self, + swapchain: vk::SwapchainKHR, + present_wait2_info: &vk::PresentWait2InfoKHR<'_>, + ) -> VkResult<()> { + unsafe { + (self.fp.wait_for_present2_khr)(self.handle, swapchain, present_wait2_info).result() + } + } +}