diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-03-12 16:23:05 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-03-12 16:23:05 +1100 |
| commit | a19308a35e88cd53c0d5ac2f26c705f902804658 (patch) | |
| tree | 368eff0e893296329e9daf71dad7978c4e40d418 /src/physical_device_context.cc | |
| parent | cc4c4fe1015648e1c19c9b35a7a1098f6cf463c1 (diff) | |
Add reasonable compiler warnings and fix them
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); }); }(); } |
