aux/vk: Add VK_EXT_display_control functions

This commit is contained in:
Christoph Haag 2021-12-09 00:19:16 +01:00
parent ec64a856b4
commit 693aceb755
3 changed files with 18 additions and 0 deletions

View file

@ -150,6 +150,10 @@ def get_device_cmds():
),
None,
Cmd("vkGetPastPresentationTimingGOOGLE"),
None,
Cmd("vkGetSwapchainCounterEXT", requires=("VK_EXT_display_control",)),
Cmd("vkRegisterDeviceEventEXT", requires=("VK_EXT_display_control",)),
Cmd("vkRegisterDisplayEventEXT", requires=("VK_EXT_display_control",)),
]

View file

@ -1035,6 +1035,13 @@ vk_get_device_functions(struct vk_bundle *vk)
#endif // defined(VK_USE_PLATFORM_ANDROID_KHR)
vk->vkGetPastPresentationTimingGOOGLE = GET_DEV_PROC(vk, vkGetPastPresentationTimingGOOGLE);
#if defined(VK_EXT_display_control)
vk->vkGetSwapchainCounterEXT = GET_DEV_PROC(vk, vkGetSwapchainCounterEXT);
vk->vkRegisterDeviceEventEXT = GET_DEV_PROC(vk, vkRegisterDeviceEventEXT);
vk->vkRegisterDisplayEventEXT = GET_DEV_PROC(vk, vkRegisterDisplayEventEXT);
#endif // defined(VK_EXT_display_control)
// end of GENERATED device loader code - do not modify - used by scripts
// clang-format on
return VK_SUCCESS;

View file

@ -284,6 +284,13 @@ struct vk_bundle
#endif // defined(VK_USE_PLATFORM_ANDROID_KHR)
PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE;
#if defined(VK_EXT_display_control)
PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT;
PFN_vkRegisterDeviceEventEXT vkRegisterDeviceEventEXT;
PFN_vkRegisterDisplayEventEXT vkRegisterDisplayEventEXT;
#endif // defined(VK_EXT_display_control)
// end of GENERATED device loader code - do not modify - used by scripts
};