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

Method ScopedDebugLabel

framework/core/debug.cpp:180–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180ScopedDebugLabel::ScopedDebugLabel(const DebugUtils &debug_utils, VkCommandBuffer command_buffer,
181 const char *name, glm::vec4 color) :
182 debug_utils{&debug_utils},
183 command_buffer{VK_NULL_HANDLE}
184{
185 if (name && *name != '\0')
186 {
187 assert(command_buffer != VK_NULL_HANDLE);
188 this->command_buffer = command_buffer;
189
190 debug_utils.cmd_begin_label(command_buffer, name, color);
191 }
192}
193
194ScopedDebugLabel::ScopedDebugLabel(const vkb::core::CommandBufferC &command_buffer, const char *name, glm::vec4 color) :
195 ScopedDebugLabel{command_buffer.get_device().get_debug_utils(), command_buffer.get_handle(), name, color}

Callers

nothing calls this directly

Calls 2

cmd_begin_labelMethod · 0.45
get_handleMethod · 0.45

Tested by

no test coverage detected