SpiecsEngine
 
Loading...
Searching...
No Matches

◆ BeginQueueLabel()

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

Start 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 69 of file VulkanDebugUtils.cpp.

74 {
76
80 VkDebugUtilsLabelEXT labelInfo{};
81 labelInfo.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
82 labelInfo.pLabelName = caption.c_str();
83
84 memcpy(labelInfo.color, &color[0], sizeof(float) * 4);
85
89 VulkanRenderBackend::GetState().m_VkFunc.vkQueueBeginDebugUtilsLabelEXT(queue, &labelInfo);
90 }
#define SPICES_PROFILE_ZONE
static VulkanState & GetState()
Get VulkanState in use.
VulkanFunctions m_VkFunc
Definition VulkanUtils.h:98