diff --git a/tools/info.cpp b/tools/info.cpp index 2c2a760..ed9c31b 100644 --- a/tools/info.cpp +++ b/tools/info.cpp @@ -28,9 +28,6 @@ main (int, char**) cruft::vk::instance instance (cruft::vk::instance::create_info {}); std::cout << "instance: " << instance << '\n'; - auto devices = cruft::vk::physical_device::find (instance); - - for (const auto &d: devices) { + for (const auto &d: cruft::vk::physical_device::find (instance)) std::cout << d << '\n'; - } } \ No newline at end of file