summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 09:47:45 -0700
committerChad Versace <[email protected]>2015-07-14 09:47:45 -0700
commite93b6d8eb114b2fc7c7b7ef624874214a37dc184 (patch)
treeec41972bd9a1b9f6cf608312a51bf4d92b9f099e /src
parent584cb7a16f4c1ec1b20760247069c3634232bc8a (diff)
vk/0.132: Add vkDestroyBuffer()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 133ffda3926..02e00c4a326 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1590,6 +1590,18 @@ VkResult anv_CreateBuffer(
return VK_SUCCESS;
}
+VkResult anv_DestroyBuffer(
+ VkDevice _device,
+ VkBuffer _buffer)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+ ANV_FROM_HANDLE(anv_buffer, buffer, _buffer);
+
+ anv_device_free(device, buffer);
+
+ return VK_SUCCESS;
+}
+
// Buffer view functions
static void