Change function allow_fallback_gpu to allow_fallback_gpu_type

This commit is contained in:
Charles Giessen 2020-03-07 02:06:11 -07:00
parent a4ab8e099d
commit e33cc3479b
2 changed files with 2 additions and 4 deletions

View File

@ -753,7 +753,7 @@ PhysicalDeviceSelector& PhysicalDeviceSelector::prefer_gpu_device_type (Preferre
criteria.preferred_type = type; criteria.preferred_type = type;
return *this; return *this;
} }
PhysicalDeviceSelector& PhysicalDeviceSelector::allow_fallback_gpu (bool fallback) { PhysicalDeviceSelector& PhysicalDeviceSelector::allow_fallback_gpu_type (bool fallback) {
criteria.allow_fallback = fallback; criteria.allow_fallback = fallback;
return *this; return *this;
} }

View File

@ -97,7 +97,6 @@ template <typename E, typename U> class Expected {
/* TODO implement operator == and operator != as friend or global */ /* TODO implement operator == and operator != as friend or global */
} // namespace detail } // namespace detail
struct SystemInfo { struct SystemInfo {
SystemInfo (); SystemInfo ();
// Returns true if a layer is available // Returns true if a layer is available
@ -155,7 +154,6 @@ class InstanceBuilder {
// Sets the vulkan API version to use. // Sets the vulkan API version to use.
InstanceBuilder& set_api_version (uint32_t major, uint32_t minor, uint32_t patch); InstanceBuilder& set_api_version (uint32_t major, uint32_t minor, uint32_t patch);
// Loads the specified layer if it is available. // Loads the specified layer if it is available.
InstanceBuilder& request_layer (const char* layer_name); 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. // 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. // Set the desired physical device type to select. Defaults to PreferredDeviceType::discrete.
PhysicalDeviceSelector& prefer_gpu_device_type (PreferredDeviceType type = 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. // 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. // Require that a physical device supports presentation. Defaults to true.
PhysicalDeviceSelector& require_present (bool require = true); PhysicalDeviceSelector& require_present (bool require = true);