aboutsummaryrefslogtreecommitdiff
path: root/layers/basic.cpp
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2015-09-07 13:59:43 -0600
committerMark Lobodzinski <mark@lunarg.com>2015-09-10 11:20:57 -0600
commite4c92a63944ab66a8a10da4a55acccef15805e52 (patch)
treeb583ea7045a3de06d76e7888b9d665bbce73fe7e /layers/basic.cpp
parenta52e058a91a3ce97c989760025a557fbcbf26368 (diff)
downloadusermoji-e4c92a63944ab66a8a10da4a55acccef15805e52.tar.xz
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.
Diffstat (limited to 'layers/basic.cpp')
-rw-r--r--layers/basic.cpp10
1 files changed, 4 insertions, 6 deletions
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)