From c7e50426ba76e083f3ce8504a4609e838fdfb9de Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Sun, 11 Feb 2024 11:13:14 -0600 Subject: [PATCH] Add alternate for deprecated desired extension functions --- src/VkBootstrap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VkBootstrap.h b/src/VkBootstrap.h index 58c1f83..a9f3c34 100644 --- a/src/VkBootstrap.h +++ b/src/VkBootstrap.h @@ -599,9 +599,11 @@ class PhysicalDeviceSelector { PhysicalDeviceSelector& add_required_extensions(size_t count, const char* const* extensions); // Prefer a physical device which supports a specific extension. - [[deprecated]] PhysicalDeviceSelector& add_desired_extension(const char* extension); + [[deprecated("Use vkb::PhysicalDevice::enable_extension_if_present instead")]] PhysicalDeviceSelector& + add_desired_extension(const char* extension); // Prefer a physical device which supports a set of extensions. - [[deprecated]] PhysicalDeviceSelector& add_desired_extensions(const std::vector& extensions); + [[deprecated("Use vkb::PhysicalDevice::enable_extensions_if_present instead")]] PhysicalDeviceSelector& + add_desired_extensions(const std::vector& extensions); // Prefer a physical device that supports a (major, minor) version of vulkan. [[deprecated("Use set_minimum_version + InstanceBuilder::require_api_version.")]] PhysicalDeviceSelector&