vk/0.132: Add vkDestroy*View()
authorChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:15:39 +0000 (11:15 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:19:22 +0000 (11:19 -0700)
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.

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

index c8b5cd8daeabbc625494e119e405a6c22ca759b4..23c87de9dd938af5103980c8637c21b3e776cf32 100644 (file)
@@ -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,
index fd4296c17d9d56826ec269d3448da0f8edd1793c..d5a2da2e35d5ac78babcf23dc8a6f2d049ebe6eb 100644 (file)
@@ -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)     \