SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SetObjectName()

void Spices::VulkanDebugUtils::SetObjectName ( VkObjectType type,
uint64_t handle,
VkDevice & device,
const std::string & caption )
static

Set Vulkan Object with a name, which can be captured.

Parameters
[in]typeThe VkObjectType of Specific Vulkan Object.
[in]handleThe handle of Specific Vulkan Object.
[in]deviceVkDevice.
[in]captionThe Vulkan Object name.

Instance a VkDebugUtilsObjectNameInfoEXT.

Execute the function pointer.

Instance a VkDebugUtilsObjectNameInfoEXT.

Execute the function pointer.

Definition at line 121 of file VulkanDebugUtils.cpp.

127 {
129
133 VkDebugUtilsObjectNameInfoEXT name_info{};
134 name_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT;
135 name_info.objectType = type;
136 name_info.objectHandle = handle;
137 name_info.pObjectName = caption.c_str();
138
142 VK_CHECK(VulkanRenderBackend::GetState().m_VkFunc.vkSetDebugUtilsObjectNameEXT(device, &name_info))
143 }
#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.