MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / FormatHandle

Method FormatHandle

layers/error_message/logging.cpp:500–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500std::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
517LoggingLabel::LoggingLabel(const VkDebugUtilsLabelEXT* label_info) {
518 if (label_info && label_info->pLabelName) {

Callers 15

DumpDescriptorsMethod · 0.45
DumpDescriptorHeapMethod · 0.45
DumpDescriptorBufferMethod · 0.45
DescribeMethod · 0.45
PrintMessageMethod · 0.45
DescribeImageUsageMethod · 0.45
StringMethod · 0.45
DescribeMethod · 0.45
DescribeMethod · 0.45

Calls 2

c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected