mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
a/vk: Add all functions for VK_KHR_timeline_semaphore
This commit is contained in:
parent
7d529a3dfc
commit
0eca48ec2b
|
@ -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"),
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue