vk/0.132: Add vkDestroyImage()
authorChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 17:08:04 +0000 (10:08 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 17:13:00 +0000 (10:13 -0700)
We only need to add it to vulkan.h because Jason defined the function
earlier in image.c.

include/vulkan/vulkan.h
src/vulkan/private.h

index d4a0469aa303b5dd85860144c60433f53b1e0dcb..c4ab8c7da2a8c5e5e35b6ffa4675c711f49e5802 100644 (file)
@@ -2030,6 +2030,7 @@ typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCrea
 typedef VkResult (VKAPI *PFN_vkDestroyBuffer)(VkDevice device, VkBuffer buffer);
 typedef VkResult (VKAPI *PFN_vkCreateBufferView)(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView);
 typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage);
+typedef VkResult (VKAPI *PFN_vkDestroyImage)(VkDevice device, VkImage image);
 typedef VkResult (VKAPI *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout);
 typedef VkResult (VKAPI *PFN_vkCreateImageView)(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView);
 typedef VkResult (VKAPI *PFN_vkCreateColorAttachmentView)(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView);
@@ -2361,6 +2362,10 @@ VkResult VKAPI vkCreateImage(
     const VkImageCreateInfo*                    pCreateInfo,
     VkImage*                                    pImage);
 
+VkResult VKAPI vkDestroyImage(
+    VkDevice                                    device,
+    VkImage                                     image);
+
 VkResult VKAPI vkGetImageSubresourceLayout(
     VkDevice                                    device,
     VkImage                                     image,
index c853a0f5f584895185d714a62370801e1062ff9d..6b0576440b5011597ff67d610e0db73717b57959 100644 (file)
@@ -944,7 +944,6 @@ anv_cmd_buffer_clear(struct anv_cmd_buffer *cmd_buffer,
 void *
 anv_lookup_entrypoint(const char *name);
 
-VkResult anv_DestroyImage(VkDevice device, VkImage image);
 VkResult anv_DestroyImageView(VkDevice device, VkImageView imageView);
 VkResult anv_DestroyBufferView(VkDevice device, VkBufferView bufferView);
 VkResult anv_DestroyColorAttachmentView(VkDevice device,