a/vk: Add all functions for VK_KHR_timeline_semaphore

This commit is contained in:
Jakob Bornecrantz 2021-12-03 21:23:52 +00:00 committed by Ryan Pavlik
parent 7d529a3dfc
commit 0eca48ec2b
3 changed files with 14 additions and 0 deletions

View file

@ -104,6 +104,16 @@ def get_device_cmds():
member_name="vkSignalSemaphore",
requires=("VK_KHR_timeline_semaphore",),
),
Cmd(
"vkWaitSemaphoresKHR",
member_name="vkWaitSemaphores",
requires=("VK_KHR_timeline_semaphore",),
),
Cmd(
"vkGetSemaphoreCounterValueKHR",
member_name="vkGetSemaphoreCounterValue",
requires=("VK_KHR_timeline_semaphore",),
),
Cmd("vkDestroySemaphore"),
None,
Cmd("vkCreateFence"),

View file

@ -993,6 +993,8 @@ vk_get_device_functions(struct vk_bundle *vk)
vk->vkCreateSemaphore = GET_DEV_PROC(vk, vkCreateSemaphore);
#if defined(VK_KHR_timeline_semaphore)
vk->vkSignalSemaphore = GET_DEV_PROC(vk, vkSignalSemaphoreKHR);
vk->vkWaitSemaphores = GET_DEV_PROC(vk, vkWaitSemaphoresKHR);
vk->vkGetSemaphoreCounterValue = GET_DEV_PROC(vk, vkGetSemaphoreCounterValueKHR);
#endif // defined(VK_KHR_timeline_semaphore)
vk->vkDestroySemaphore = GET_DEV_PROC(vk, vkDestroySemaphore);

View file

@ -232,6 +232,8 @@ struct vk_bundle
PFN_vkCreateSemaphore vkCreateSemaphore;
#if defined(VK_KHR_timeline_semaphore)
PFN_vkSignalSemaphoreKHR vkSignalSemaphore;
PFN_vkWaitSemaphoresKHR vkWaitSemaphores;
PFN_vkGetSemaphoreCounterValueKHR vkGetSemaphoreCounterValue;
#endif // defined(VK_KHR_timeline_semaphore)
PFN_vkDestroySemaphore vkDestroySemaphore;