SpiecsEngine
 
Loading...
Searching...
No Matches

◆ BeginLabel()

void Spices::VulkanDebugUtils::BeginLabel ( VkCommandBuffer cmdBuffer,
const std::string & caption,
glm::vec4 color = glm::vec4(1.0f) )
static

Start Record Commands with a Label.

Parameters
[in]cmdBufferThe VkCommandBuffer in use this frame.
[in]captionThe label be captured.
[in]colorThe label color.

Instance a VkDebugUtilsObjectNameInfoEXT.

Execute the function pointer.

Instance a VkDebugUtilsObjectNameInfoEXT.

Execute the function pointer.

Definition at line 13 of file VulkanDebugUtils.cpp.

18 {
20
24 VkDebugUtilsLabelEXT labelInfo{};
25 labelInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
26 labelInfo.pLabelName = caption.c_str();
27
28 memcpy(labelInfo.color, &color[0], sizeof(float) * 4);
29
33 VulkanRenderBackend::GetState().m_VkFunc.vkCmdBeginDebugUtilsLabelEXT(cmdBuffer, &labelInfo);
34 }
#define SPICES_PROFILE_ZONE
static VulkanState & GetState()
Get VulkanState in use.
VulkanFunctions m_VkFunc
Definition VulkanUtils.h:98