vk/0.132: Add vkDestroyBufferView()
authorChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:01:38 +0000 (11:01 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 18:06:57 +0000 (11:06 -0700)
Just declare it in vulkan.h. Jason already defined the function
earlier in vulkan.c.

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

index 13d9309497833e9a2201f18088b1eb1096611f8e..0fbb0f1c3705f10a16e8a17af4270a74ca884727 100644 (file)
@@ -2029,6 +2029,7 @@ typedef VkResult (VKAPI *PFN_vkGetQueryPoolResults)(VkDevice device, VkQueryPool
 typedef VkResult (VKAPI *PFN_vkCreateBuffer)(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer);
 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_vkDestroyBufferView)(VkDevice device, VkBufferView bufferView);
 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);
@@ -2370,6 +2371,10 @@ VkResult VKAPI vkCreateBufferView(
     const VkBufferViewCreateInfo*               pCreateInfo,
     VkBufferView*                               pView);
 
+VkResult VKAPI vkDestroyBufferView(
+    VkDevice                                    device,
+    VkBufferView                                bufferView);
+
 VkResult VKAPI vkCreateImage(
     VkDevice                                    device,
     const VkImageCreateInfo*                    pCreateInfo,
index 6b0576440b5011597ff67d610e0db73717b57959..d50cc6175b095a1d2ec801e63ed7e34f4f39ca9e 100644 (file)
@@ -945,7 +945,6 @@ void *
 anv_lookup_entrypoint(const char *name);
 
 VkResult anv_DestroyImageView(VkDevice device, VkImageView imageView);
-VkResult anv_DestroyBufferView(VkDevice device, VkBufferView bufferView);
 VkResult anv_DestroyColorAttachmentView(VkDevice device,
                                         VkColorAttachmentView view);
 VkResult anv_DestroyDepthStencilView(VkDevice device, VkDepthStencilView view);