mono / VulkanSharp

Open source .NET binding for the Vulkan API
MIT License
538 stars 61 forks source link

GetFenceStatus() has no return type. #65

Open baehny opened 6 years ago

baehny commented 6 years ago

The wrapping method for vkGetFenceStatus (Vulkan Specs) looks like this:

public void GetFenceStatus (Fence fence) { Result result; unsafe { result = Interop.NativeMethods.vkGetFenceStatus (this.m, fence != null ? fence.m : default(UInt64)); if (result != Result.Success) throw new ResultException (result); } }

Source File

The return type VkResult is wrapped to throw an exception if the result is not VK_SUCCESS so we have to throw and catch the exception everytime we want to get the fence status.