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

Method HPPScopedDebugLabel

framework/core/hpp_debug.cpp:87–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87HPPScopedDebugLabel::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
102HPPScopedDebugLabel::HPPScopedDebugLabel(const vkb::core::CommandBufferCpp &command_buffer,
103 std::string const &name,

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
cmd_begin_labelMethod · 0.45
get_handleMethod · 0.45

Tested by

no test coverage detected