From: Chad Versace Date: Tue, 14 Jul 2015 18:02:33 +0000 (-0700) Subject: vk/0.132: Add vkDestroyImageView() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6eec0b186ccabd6ffe7ec5ec90582d49198e1f0b;p=mesa.git vk/0.132: Add vkDestroyImageView() Just declare it in vulkan.h. Jason defined the function earlier in image.c. --- diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index 0fbb0f1c370..cbb42b2c707 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -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, diff --git a/src/vulkan/private.h b/src/vulkan/private.h index d50cc6175b0..fd4296c17d9 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -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);