| 178 | } |
| 179 | |
| 180 | ScopedDebugLabel::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 | |
| 194 | ScopedDebugLabel::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} |
nothing calls this directly
no test coverage detected