vk/0.132: Add vkDestroySemaphore()
authorChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 16:31:34 +0000 (09:31 -0700)
committerChad Versace <chad.versace@intel.com>
Tue, 14 Jul 2015 16:31:34 +0000 (09:31 -0700)
include/vulkan/vulkan.h
src/vulkan/device.c

index 476c0523a91cc1a858dd409108f635e568fb27c6..07947d63aeb51f878f3f8cbb9bd1493f21c268fd 100644 (file)
@@ -2015,6 +2015,7 @@ typedef VkResult (VKAPI *PFN_vkResetFences)(VkDevice device, uint32_t fenceCount
 typedef VkResult (VKAPI *PFN_vkGetFenceStatus)(VkDevice device, VkFence fence);
 typedef VkResult (VKAPI *PFN_vkWaitForFences)(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout);
 typedef VkResult (VKAPI *PFN_vkCreateSemaphore)(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore);
+typedef VkResult (VKAPI *PFN_vkDestroySemaphore)(VkDevice device, VkSemaphore semaphore);
 typedef VkResult (VKAPI *PFN_vkQueueSignalSemaphore)(VkQueue queue, VkSemaphore semaphore);
 typedef VkResult (VKAPI *PFN_vkQueueWaitSemaphore)(VkQueue queue, VkSemaphore semaphore);
 typedef VkResult (VKAPI *PFN_vkCreateEvent)(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent);
@@ -2287,6 +2288,10 @@ VkResult VKAPI vkCreateSemaphore(
     const VkSemaphoreCreateInfo*                pCreateInfo,
     VkSemaphore*                                pSemaphore);
 
+VkResult VKAPI vkDestroySemaphore(
+    VkDevice                                    device,
+    VkSemaphore                                 semaphore);
+
 VkResult VKAPI vkQueueSignalSemaphore(
     VkQueue                                     queue,
     VkSemaphore                                 semaphore);
index 14221127fc528408f28e2c083cf80a0e140bcc98..08d7e9f146c3b02dd9ca813723526ec4d47c826c 100644 (file)
@@ -1505,6 +1505,13 @@ VkResult anv_CreateSemaphore(
    stub_return(VK_UNSUPPORTED);
 }
 
+VkResult anv_DestroySemaphore(
+    VkDevice                                    device,
+    VkSemaphore                                 semaphore)
+{
+   stub_return(VK_UNSUPPORTED);
+}
+
 VkResult anv_QueueSignalSemaphore(
     VkQueue                                     queue,
     VkSemaphore                                 semaphore)