| 498 | } |
| 499 | |
| 500 | std::string DebugReport::FormatHandle(const char* handle_type_name, uint64_t handle) const { |
| 501 | std::unique_lock<std::mutex> lock(debug_output_mutex); |
| 502 | std::string handle_name = GetUtilsObjectNameNoLock(handle); |
| 503 | if (handle_name.empty()) { |
| 504 | handle_name = GetMarkerObjectNameNoLock(handle); |
| 505 | } |
| 506 | |
| 507 | std::ostringstream str; |
| 508 | str << handle_type_name << " "; |
| 509 | str << "0x" << std::hex << handle; |
| 510 | |
| 511 | if (!handle_name.empty()) { |
| 512 | str << "[" << handle_name.c_str() << "]"; |
| 513 | } |
| 514 | return str.str(); |
| 515 | } |
| 516 | |
| 517 | LoggingLabel::LoggingLabel(const VkDebugUtilsLabelEXT* label_info) { |
| 518 | if (label_info && label_info->pLabelName) { |
no test coverage detected