From 2b7b4387683597f8c54e5233567aa05264cd8f62 Mon Sep 17 00:00:00 2001 From: MagicXHouse <96930078+MagicXHouse@users.noreply.github.com> Date: Thu, 20 Aug 2026 11:26:22 +0800 Subject: [PATCH] Fix: Fixed the issue where custom pipeline profiler were not displaying. (#295) --- .../renderer/pipeline/custom/NativeExecutor.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/native/cocos/renderer/pipeline/custom/NativeExecutor.cpp b/native/cocos/renderer/pipeline/custom/NativeExecutor.cpp index 5c20af2fa3..03e0c167e0 100644 --- a/native/cocos/renderer/pipeline/custom/NativeExecutor.cpp +++ b/native/cocos/renderer/pipeline/custom/NativeExecutor.cpp @@ -44,7 +44,9 @@ #include "details/GraphView.h" #include "details/GslUtils.h" #include "details/Range.h" - +#if CC_USE_DEBUG_RENDERER + #include "cocos/renderer/pipeline/helper/Utils.h" +#endif #if CC_USE_GEOMETRY_RENDERER #include "cocos/renderer/pipeline/GeometryRenderer.h" #endif @@ -793,7 +795,14 @@ struct RenderGraphVisitor : boost::dfs_visitor<> { return; } } - +#if CC_USE_DEBUG_RENDERER + if (blit.blitType == BlitType::DRAW_PROFILE) + { + auto* renderPass = ctx.currentPass; + auto* cmdBuff = ctx.cmdBuff; + renderDebugRenderer(renderPass, cmdBuff, ctx.ppl->getPipelineSceneData(), cc::pipeline::profilerCamera); + } +#endif tryBindPassDescriptorSet(vertID); tryBindQueueDescriptorSets(vertID);