SpiecsEngine
 
Loading...
Searching...
No Matches

◆ InsertQueueLabel()

void Spices::VulkanDebugUtils::InsertQueueLabel ( VkQueue queue,
const std::string & caption,
glm::vec4 color = glm::vec4(1.0f) )
static

Insert Record Queue with a Label.

Parameters
[in]queueThe VkQueue in use.
[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 102 of file VulkanDebugUtils.cpp.

103 {
105
109 VkDebugUtilsLabelEXT labelInfo{};
110 labelInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
111 labelInfo.pLabelName = caption.c_str();
112
113 memcpy(labelInfo.color, &color[0], sizeof(float) * 4);
114
118 VulkanRenderBackend::GetState().m_VkFunc.vkQueueInsertDebugUtilsLabelEXT(queue, &labelInfo);
119 }
#define SPICES_PROFILE_ZONE
static VulkanState & GetState()
Get VulkanState in use.
VulkanFunctions m_VkFunc
Definition VulkanUtils.h:98