| 25 | } |
| 26 | |
| 27 | float 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 |