From: Chad Versace Date: Tue, 14 Jul 2015 18:15:39 +0000 (-0700) Subject: vk/0.132: Add vkDestroy*View() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d0ed38db57df9e8c0953c90eb3917b1adc80078;p=mesa.git vk/0.132: Add vkDestroy*View() vkDestroyColorAttachmentView vkDestroyDepthStencilView These functions are not in the 0.132 header, but adding them will help us attain the type-safety API updates more quickly. --- diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index c8b5cd8daea..23c87de9dd9 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -2036,7 +2036,9 @@ typedef VkResult (VKAPI *PFN_vkGetImageSubresourceLayout)(VkDevice device, VkIma 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_vkDestroyColorAttachmentView)(VkDevice device, VkColorAttachmentView view); typedef VkResult (VKAPI *PFN_vkCreateDepthStencilView)(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView); +typedef VkResult (VKAPI *PFN_vkDestroyDepthStencilView)(VkDevice device, VkDepthStencilView view); typedef VkResult (VKAPI *PFN_vkCreateShaderModule)(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModule* pShaderModule); typedef VkResult (VKAPI *PFN_vkDestroyShaderModule)(VkDevice device, VkShaderModule shaderModule); typedef VkResult (VKAPI *PFN_vkCreateShader)(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader); @@ -2406,11 +2408,19 @@ VkResult VKAPI vkCreateColorAttachmentView( const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView); +VkResult VKAPI vkDestroyColorAttachmentView( + VkDevice device, + VkColorAttachmentView view); + VkResult VKAPI vkCreateDepthStencilView( VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView); +VkResult VKAPI vkDestroyDepthStencilView( + VkDevice device, + VkDepthStencilView view); + VkResult VKAPI vkCreateShaderModule( VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, diff --git a/src/vulkan/private.h b/src/vulkan/private.h index fd4296c17d9..d5a2da2e35d 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -944,9 +944,6 @@ anv_cmd_buffer_clear(struct anv_cmd_buffer *cmd_buffer, void * anv_lookup_entrypoint(const char *name); -VkResult anv_DestroyColorAttachmentView(VkDevice device, - VkColorAttachmentView view); -VkResult anv_DestroyDepthStencilView(VkDevice device, VkDepthStencilView view); VkResult anv_DestroyRenderPass(VkDevice device, VkRenderPass renderPass); #define ANV_DEFINE_CASTS(__anv_type, __VkType) \