SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SetObjectTag()

void Spices::VulkanDebugUtils::SetObjectTag ( VkObjectType type,
uint64_t handle,
VkDevice & device,
const std::vector< char * > & captions )
static

Set Vulkan Object with tags, which can be captured.

Parameters
[in]typeThe VkObjectType of Specific Vulkan Object.
[in]handleThe handle of Specific Vulkan Object.
[in]deviceVkDevice.
[in]captionsThe Vulkan Object tags.

Instance a VkDebugUtilsObjectNameInfoEXT.

Execute the function pointer.

Instance a VkDebugUtilsObjectNameInfoEXT.

Execute the function pointer.

Definition at line 145 of file VulkanDebugUtils.cpp.

151 {
153
157 VkDebugUtilsObjectTagInfoEXT tag_info{};
158 tag_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_TAG_INFO_EXT;
159 tag_info.objectType = type;
160 tag_info.objectHandle = handle;
161 tag_info.tagName = 0;
162 tag_info.tagSize = captions.size();
163 tag_info.pTag = captions.data();
164
168 VK_CHECK(VulkanRenderBackend::GetState().m_VkFunc.vkSetDebugUtilsObjectTagEXT(device, &tag_info))
169 }
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
Definition VulkanUtils.h:68
static VulkanState & GetState()
Get VulkanState in use.