mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
aux/vk: Add VK_EXT_display_control functions
This commit is contained in:
parent
ec64a856b4
commit
693aceb755
|
@ -150,6 +150,10 @@ def get_device_cmds():
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
Cmd("vkGetPastPresentationTimingGOOGLE"),
|
Cmd("vkGetPastPresentationTimingGOOGLE"),
|
||||||
|
None,
|
||||||
|
Cmd("vkGetSwapchainCounterEXT", requires=("VK_EXT_display_control",)),
|
||||||
|
Cmd("vkRegisterDeviceEventEXT", requires=("VK_EXT_display_control",)),
|
||||||
|
Cmd("vkRegisterDisplayEventEXT", requires=("VK_EXT_display_control",)),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1035,6 +1035,13 @@ vk_get_device_functions(struct vk_bundle *vk)
|
||||||
#endif // defined(VK_USE_PLATFORM_ANDROID_KHR)
|
#endif // defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||||
|
|
||||||
vk->vkGetPastPresentationTimingGOOGLE = GET_DEV_PROC(vk, vkGetPastPresentationTimingGOOGLE);
|
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
|
// end of GENERATED device loader code - do not modify - used by scripts
|
||||||
// clang-format on
|
// clang-format on
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
|
|
|
@ -284,6 +284,13 @@ struct vk_bundle
|
||||||
#endif // defined(VK_USE_PLATFORM_ANDROID_KHR)
|
#endif // defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||||
|
|
||||||
PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE;
|
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
|
// end of GENERATED device loader code - do not modify - used by scripts
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue