From e4c92a63944ab66a8a10da4a55acccef15805e52 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 7 Sep 2015 13:59:43 -0600 Subject: vulkan.h: Change return types of some functions to void Functions that should be thought of as "impossible to fail in the face of valid parameters" have had their return types changed to void. This includes all of the vkDestroy functions, vkFreeMemory, and vkUnmapMemory. vkUpdateDescriptorSets is also included, because of the frequency the function is expected to be called. --- layers/basic.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'layers/basic.cpp') diff --git a/layers/basic.cpp b/layers/basic.cpp index f060bb89..822646fa 100644 --- a/layers/basic.cpp +++ b/layers/basic.cpp @@ -107,21 +107,19 @@ VK_LAYER_EXPORT VkResult VKAPI basic_CreateDevice(VkPhysicalDevice gpu, const Vk } /* hook DestroyDevice to remove tableMap entry */ -VK_LAYER_EXPORT VkResult VKAPI basic_DestroyDevice(VkDevice device) +VK_LAYER_EXPORT void VKAPI basic_DestroyDevice(VkDevice device) { dispatch_key key = get_dispatch_key(device); - VkResult res = device_dispatch_table(device)->DestroyDevice(device); + device_dispatch_table(device)->DestroyDevice(device); destroy_device_dispatch_table(key); - return res; } /* hook DestroyInstance to remove tableInstanceMap entry */ -VK_LAYER_EXPORT VkResult VKAPI basic_DestroyInstance(VkInstance instance) +VK_LAYER_EXPORT void VKAPI basic_DestroyInstance(VkInstance instance) { dispatch_key key = get_dispatch_key(instance); - VkResult res = instance_dispatch_table(instance)->DestroyInstance(instance); + instance_dispatch_table(instance)->DestroyInstance(instance); destroy_instance_dispatch_table(key); - return res; } VK_LAYER_EXPORT VkResult VKAPI basic_GetPhysicalDeviceFormatProperties(VkPhysicalDevice gpu, VkFormat format, VkFormatProperties *pFormatInfo) -- cgit v1.2.3