mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Change function allow_fallback_gpu to allow_fallback_gpu_type
This commit is contained in:
parent
a4ab8e099d
commit
e33cc3479b
@ -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;
|
||||
}
|
||||
|
@ -97,7 +97,6 @@ template <typename E, typename U> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user