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

Method cmd_begin_label

framework/core/debug.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void DebugUtilsExtDebugUtils::cmd_begin_label(VkCommandBuffer command_buffer,
57 const char *name, glm::vec4 color) const
58{
59 VkDebugUtilsLabelEXT label_info{};
60 label_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
61 label_info.pLabelName = name;
62 memcpy(label_info.color, glm::value_ptr(color), sizeof(glm::vec4));
63
64 assert(vkCmdBeginDebugUtilsLabelEXT);
65 vkCmdBeginDebugUtilsLabelEXT(command_buffer, &label_info);
66}
67
68void DebugUtilsExtDebugUtils::cmd_end_label(VkCommandBuffer command_buffer) const
69{

Callers 1

ScopedDebugLabelMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected