debugmarker/debugmarker.cpp
// Start a new debug marker region
Start a new debug marker region
Start a new debug marker region
void beginRegion(VkCommandBuffer cmdbuffer, const char* pMarkerName, glm::vec4 color)
	{
		if (pfnCmdDebugMarkerBegin)
		{
			VkDebugMarkerMarkerInfoEXT markerInfo = {};
			markerInfo.sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT;
			memcpy(markerInfo.color, &color[0], sizeof(float) * 4);
			markerInfo.pMarkerName = pMarkerName;
			pfnCmdDebugMarkerBegin(cmdbuffer, &markerInfo);
		}
	}
void beginRegion ( VkCommandBuffer cmdbuffer , const char * pMarkerName , glm :: vec4 color ) { if ( pfnCmdDebugMarkerBegin ) { VkDebugMarkerMarkerInfoEXT markerInfo = { } ; markerInfo . sType = VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT ; memcpy ( markerInfo . color , & color [ 0 ] , sizeof ( float ) * 4 ) ; markerInfo . pMarkerName = pMarkerName ; pfnCmdDebugMarkerBegin ( cmdbuffer , & markerInfo ) ; } }
Start a new debug marker region
Start a new debug marker region
// Check for valid function pointer (may not be present if not running in a debugging application)