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.
diff --git a/tests/image_tests.cpp b/tests/image_tests.cpp
index 5630cbd..0cefe69 100644
--- a/tests/image_tests.cpp
+++ b/tests/image_tests.cpp
@@ -239,12 +239,10 @@
void VkImageTest::DestroyImage()
{
- VkResult err;
// All done with image memory, clean up
- err = vkFreeMemory(device(), m_image_mem);
- ASSERT_VK_SUCCESS(err);
+ vkFreeMemory(device(), m_image_mem);
- ASSERT_VK_SUCCESS(vkDestroyImage(device(), m_image));
+ vkDestroyImage(device(), m_image);
}
void VkImageTest::CreateImageView(VkImageViewCreateInfo *pCreateInfo,
@@ -256,7 +254,7 @@
void VkImageTest::DestroyImageView(VkImageView imageView)
{
- ASSERT_VK_SUCCESS(vkDestroyImageView(device(), imageView));
+ vkDestroyImageView(device(), imageView);
}
TEST_F(VkImageTest, CreateImageViewTest) {