From e33cc3479ba2e8101e83202993c8df516e720bc6 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Sat, 7 Mar 2020 02:06:11 -0700 Subject: [PATCH] Change function allow_fallback_gpu to allow_fallback_gpu_type --- src/VkBootstrap.cpp | 2 +- src/VkBootstrap.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/VkBootstrap.cpp b/src/VkBootstrap.cpp index 9183b93..0056ad3 100644 --- a/src/VkBootstrap.cpp +++ b/src/VkBootstrap.cpp @@ -753,7 +753,7 @@ PhysicalDeviceSelector& PhysicalDeviceSelector::prefer_gpu_device_type (Preferre criteria.preferred_type = type; return *this; } -PhysicalDeviceSelector& PhysicalDeviceSelector::allow_fallback_gpu (bool fallback) { +PhysicalDeviceSelector& PhysicalDeviceSelector::allow_fallback_gpu_type (bool fallback) { criteria.allow_fallback = fallback; return *this; } diff --git a/src/VkBootstrap.h b/src/VkBootstrap.h index bd90eec..462c662 100644 --- a/src/VkBootstrap.h +++ b/src/VkBootstrap.h @@ -97,7 +97,6 @@ template class Expected { /* TODO implement operator == and operator != as friend or global */ } // namespace detail - struct SystemInfo { SystemInfo (); // Returns true if a layer is available @@ -155,7 +154,6 @@ class InstanceBuilder { // Sets the vulkan API version to use. InstanceBuilder& set_api_version (uint32_t major, uint32_t minor, uint32_t patch); - // Loads the specified layer if it is available. InstanceBuilder& request_layer (const char* layer_name); // Adds a layer to be enabled. Will fail to create an instance if the layer isn't available. @@ -293,7 +291,7 @@ class PhysicalDeviceSelector { // Set the desired physical device type to select. Defaults to PreferredDeviceType::discrete. PhysicalDeviceSelector& prefer_gpu_device_type (PreferredDeviceType type = PreferredDeviceType::discrete); // Allow fallback to a device type that isn't the preferred physical device type. Defaults to true. - PhysicalDeviceSelector& allow_fallback_gpu (bool fallback = true); + PhysicalDeviceSelector& allow_fallback_gpu_type (bool fallback = true); // Require that a physical device supports presentation. Defaults to true. PhysicalDeviceSelector& require_present (bool require = true);