From 21c65096e0674b6e4d99a202c6da4b5f6421a4b9 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sun, 3 Nov 2019 10:18:14 -0800 Subject: [PATCH] Return `VkResult` from get_fence_status (#246) Makes it easier not to ignore actual errors. --- ash/src/device.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ash/src/device.rs b/ash/src/device.rs index a8e3982..12ce492 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -1670,10 +1670,11 @@ pub trait DeviceV1_0 { } #[doc = ""] - unsafe fn get_fence_status(&self, fence: vk::Fence) -> VkResult<()> { + 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(()), + vk::Result::SUCCESS => Ok(true), + vk::Result::NOT_READY => Ok(false), _ => Err(err_code), } }