From 655870d04a22cec2920d5b117978914a3c550371 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Sun, 23 Apr 2017 10:04:24 +0200 Subject: [PATCH] Add get fence status --- ash/src/device.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ash/src/device.rs b/ash/src/device.rs index c517a7a..76e1ceb 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -636,6 +636,15 @@ pub trait DeviceV1_0 { } } + unsafe fn get_fence_status(&self, fence: vk::Fence) -> VkResult<()> { + let err_code = self.fp_v1_0() + .get_fence_status(self.handle(), fence); + match err_code { + vk::Result::Success => Ok(()), + _ => Err(err_code), + } + } + unsafe fn queue_wait_idle(&self, queue: vk::Queue) -> VkResult<()> { let err_code = self.fp_v1_0().queue_wait_idle(queue); match err_code {