Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ash/src/extensions/khr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
18 changes: 18 additions & 0 deletions ash/src/extensions/khr/present_wait2.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//! <https://docs.vulkan.org/refpages/latest/refpages/source/VK_KHR_present_wait2.html>

use crate::VkResult;
use crate::vk;

impl crate::khr::present_wait2::Device {
/// <https://docs.vulkan.org/refpages/latest/refpages/source/vkWaitForPresent2KHR.html>
#[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()
}
}
}