MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / doRegisterObjectName

Method doRegisterObjectName

source/RenderGraph/GraphContext.cpp:336–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334 }
335
336 void GraphContext::doRegisterObjectName( uint64_t object
337 , uint32_t objectType
338 , std::string const & objectName )
339 {
340# if VK_EXT_debug_utils
341 if ( vkSetDebugUtilsObjectNameEXT )
342 {
343 VkDebugUtilsObjectNameInfoEXT nameInfo{ VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT
344 , nullptr
345 , VkObjectType( objectType )
346 , object
347 , objectName.c_str() };
348 vkSetDebugUtilsObjectNameEXT( device, &nameInfo );
349 }
350# endif
351# if VK_EXT_debug_marker
352 if ( vkDebugMarkerSetObjectNameEXT )
353 {
354 VkDebugMarkerObjectNameInfoEXT nameInfo{ VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT
355 , nullptr
356 , VkDebugReportObjectTypeEXT( objectType )
357 , object
358 , objectName.c_str() };
359 vkDebugMarkerSetObjectNameEXT( device, &nameInfo );
360 }
361# endif
362 }
363
364 void GraphContext::doUnregisterObject( uint64_t object )
365 {

Callers 1

stRegisterObjectNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected