diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py index 8953d5fc7..cd937df65 100755 --- a/scripts/generate_vk_helpers.py +++ b/scripts/generate_vk_helpers.py @@ -220,6 +220,8 @@ def get_instance_cmds(): Cmd("vkCreateAndroidSurfaceKHR", requires=("VK_USE_PLATFORM_ANDROID_KHR",)), None, Cmd("vkCreateWin32SurfaceKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)), + None, + Cmd("vkGetPhysicalDeviceSurfaceCapabilities2EXT", requires=("VK_EXT_display_surface_counter",)) ] diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index d2946407e..1418bdb2c 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -891,8 +891,13 @@ vk_get_instance_functions(struct vk_bundle *vk) #if defined(VK_USE_PLATFORM_WIN32_KHR) vk->vkCreateWin32SurfaceKHR = GET_INS_PROC(vk, vkCreateWin32SurfaceKHR); + #endif // defined(VK_USE_PLATFORM_WIN32_KHR) +#if defined(VK_EXT_display_surface_counter) + vk->vkGetPhysicalDeviceSurfaceCapabilities2EXT = GET_INS_PROC(vk, vkGetPhysicalDeviceSurfaceCapabilities2EXT); +#endif // defined(VK_EXT_display_surface_counter) + // end of GENERATED instance loader code - do not modify - used by scripts // clang-format on diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index 8056cad89..24fa8d5bd 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -149,8 +149,13 @@ struct vk_bundle #if defined(VK_USE_PLATFORM_WIN32_KHR) PFN_vkCreateWin32SurfaceKHR vkCreateWin32SurfaceKHR; + #endif // defined(VK_USE_PLATFORM_WIN32_KHR) +#if defined(VK_EXT_display_surface_counter) + PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT vkGetPhysicalDeviceSurfaceCapabilities2EXT; +#endif // defined(VK_EXT_display_surface_counter) + // end of GENERATED instance loader code - do not modify - used by scripts // beginning of GENERATED device loader code - do not modify - used by scripts