MCPcopy Create free account
hub / github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook / setVkObjectName

Function setVkObjectName

shared/UtilsVulkan.cpp:2791–2802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2789}
2790
2791bool setVkObjectName(VulkanRenderDevice& vkDev, void* object, VkObjectType objType, const char* name)
2792{
2793 VkDebugUtilsObjectNameInfoEXT nameInfo = {
2794 .sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT,
2795 .pNext = nullptr,
2796 .objectType = objType,
2797 .objectHandle = (uint64_t)object,
2798 .pObjectName = name
2799 };
2800
2801 return (vkSetDebugUtilsObjectNameEXT(vkDev.device, &nameInfo) == VK_SUCCESS);
2802}
2803
2804void updateTextureInDescriptorSetArray(VulkanRenderDevice& vkDev, VkDescriptorSet ds, VulkanTexture t, uint32_t textureIndex, uint32_t bindingIdx)
2805{

Callers 1

setVkImageNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected