Ui: log the Vulkan device and descriptor mode

One line at the first window names the device, whether descriptors go
through the heap or through sets, and the window's scale — the phone's
answer to "which path ran".
This commit is contained in:
Jorijn van der Graaf 2026-10-18 01:36:45 +02:00
commit 99119e6d5e
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB

View file

@ -149,6 +149,7 @@ export namespace ImsdMessages::Ui {
source->onLost = [this] { source->onLost = [this] {
if (onDisplayLost) onDisplayLost(); if (onDisplayLost) onDisplayLost();
}; };
Log(std::format("vulkan: {}, descriptors by {}; window scale {}", Crafter::Device::deviceProperties.deviceName, Crafter::Device::descriptorHeapSupported ? "heap" : "sets", canvas->Window().scale));
} }
frames.emplace(canvas->Window()); frames.emplace(canvas->Window());
frames->onFrame = [this] { canvas->Window().Update(); }; frames->onFrame = [this] { canvas->Window().Update(); };