| 85 | } |
| 86 | |
| 87 | HPPScopedDebugLabel::HPPScopedDebugLabel(const HPPDebugUtils &debug_utils, |
| 88 | vk::CommandBuffer command_buffer, |
| 89 | std::string const &name, |
| 90 | glm::vec4 const color) : |
| 91 | debug_utils{&debug_utils}, command_buffer{VK_NULL_HANDLE} |
| 92 | { |
| 93 | if (!name.empty()) |
| 94 | { |
| 95 | assert(command_buffer); |
| 96 | this->command_buffer = command_buffer; |
| 97 | |
| 98 | debug_utils.cmd_begin_label(command_buffer, name.c_str(), color); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | HPPScopedDebugLabel::HPPScopedDebugLabel(const vkb::core::CommandBufferCpp &command_buffer, |
| 103 | std::string const &name, |
nothing calls this directly
no test coverage detected