vk/0.132: Add vkDestroyImageView()
authorChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:02:33 +0000 (11:02 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:09:14 +0000 (11:09 -0700)
Just declare it in vulkan.h. Jason defined the function earlier
in image.c.

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

index 0fbb0f1c3705f10a16e8a17af4270a74ca884727..cbb42b2c7075443f661d6c2f36ed4e02e3735803 100644 (file)
@@ -2034,6 +2034,7 @@ typedef VkResult (VKAPI *PFN_vkCreateImage)(VkDevice device, const VkImageCreate
 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_vkDestroyImageView)(VkDevice device, VkImageView imageView);
 typedef VkResult (VKAPI *PFN_vkCreateColorAttachmentView)(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView);
 typedef VkResult (VKAPI *PFN_vkCreateDepthStencilView)(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView);
 typedef VkResult (VKAPI *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModule* pShaderModule);
@@ -2395,6 +2396,10 @@ VkResult VKAPI vkCreateImageView(
     const VkImageViewCreateInfo*                pCreateInfo,
     VkImageView*                                pView);
 
+VkResult VKAPI vkDestroyImageView(
+    VkDevice                                    device,
+    VkImageView                                 imageView);
+
 VkResult VKAPI vkCreateColorAttachmentView(
     VkDevice                                    device,
     const VkColorAttachmentViewCreateInfo*      pCreateInfo,
index d50cc6175b095a1d2ec801e63ed7e34f4f39ca9e..fd4296c17d9d56826ec269d3448da0f8edd1793c 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_DestroyImageView(VkDevice device, VkImageView imageView);
 VkResult anv_DestroyColorAttachmentView(VkDevice device,
                                         VkColorAttachmentView view);
 VkResult anv_DestroyDepthStencilView(VkDevice device, VkDepthStencilView view);