diff options
Diffstat (limited to 'src/physical_device_context.cc')
| -rw-r--r-- | src/physical_device_context.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc index de63b3d..29b4ca3 100644 --- a/src/physical_device_context.cc +++ b/src/physical_device_context.cc @@ -1,4 +1,5 @@ #include "physical_device_context.hh" + #include <vulkan/vulkan_core.h> #include <ranges> @@ -44,7 +45,7 @@ PhysicalDeviceContext::PhysicalDeviceContext( vtable.EnumerateDeviceExtensionProperties( physical_device, nullptr, &count, std::data(supported_extensions)); - const auto supported_extension_names = + const auto supported = supported_extensions | std::views::transform( [](const auto& supported) { return supported.extensionName; }) | @@ -52,7 +53,7 @@ PhysicalDeviceContext::PhysicalDeviceContext( return std::ranges::all_of( this->required_extensions, [&](const auto& required_extension) { - return supported_extension_names.contains(required_extension); + return supported.contains(required_extension); }); }(); } |
