MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / get_longest_label

Method get_longest_label

framework/debug_info.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27float DebugInfo::get_longest_label() const
28{
29 float column_width = 0.0f;
30 for (auto &field : fields)
31 {
32 const std::string &label = field->label;
33
34 if (label.size() > column_width)
35 {
36 column_width = static_cast<float>(label.size());
37 }
38 }
39 return column_width;
40}
41} // namespace vkb

Callers 1

show_debug_windowMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected