From 4b2c5a98f02699e396312f580e23cb91c9d233a3 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 14 Jul 2015 11:01:38 -0700 Subject: [PATCH] vk/0.132: Add vkDestroyBufferView() Just declare it in vulkan.h. Jason already defined the function earlier in vulkan.c. --- include/vulkan/vulkan.h | 5 +++++ src/vulkan/private.h | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index 13d93094978..0fbb0f1c370 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -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, diff --git a/src/vulkan/private.h b/src/vulkan/private.h index 6b0576440b5..d50cc6175b0 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -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); -- 2.30.2