debugmarker/debugmarker.cpp
// Insert a new debug marker into the command buffer
Insert a new debug marker into the command buffer
Insert a new debug marker into the command buffer
void insert(VkCommandBuffer cmdbuffer, std::string markerName, glm::vec4 color)
	{
		if (pfnCmdDebugMarkerInsert)
		{
			VkDebugMarkerMarkerInfoEXT markerInfo = {};
			markerInfo.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT;
			memcpy(markerInfo.color, &color[0], sizeof(float) * 4);
			markerInfo.pMarkerName = markerName.c_str();
			pfnCmdDebugMarkerInsert(cmdbuffer, &markerInfo);
		}
	}
void insert ( VkCommandBuffer cmdbuffer , std :: string markerName , glm :: vec4 color ) { if ( pfnCmdDebugMarkerInsert ) { VkDebugMarkerMarkerInfoEXT markerInfo = { } ; markerInfo . sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT ; memcpy ( markerInfo . color , & color [ 0 ] , sizeof ( float ) * 4 ) ; markerInfo . pMarkerName = markerName . c_str ( ) ; pfnCmdDebugMarkerInsert ( cmdbuffer , & markerInfo ) ; } }
Insert a new debug marker into the command buffer
Insert a new debug marker into the command buffer
// Check for valid function pointer (may not be present if not running in a debugging application)