Skip to content

Commit 0b1c5c4

Browse files
committed
Fix: Fixed the issue where custom pipeline profiler were not displaying.
1 parent ff436d6 commit 0b1c5c4

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

native/cocos/renderer/pipeline/custom/NativeExecutor.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
#include "details/GraphView.h"
4545
#include "details/GslUtils.h"
4646
#include "details/Range.h"
47-
47+
#if CC_USE_DEBUG_RENDERER
48+
#include "cocos/renderer/pipeline/helper/Utils.h"
49+
#endif
4850
#if CC_USE_GEOMETRY_RENDERER
4951
#include "cocos/renderer/pipeline/GeometryRenderer.h"
5052
#endif
@@ -793,7 +795,14 @@ struct RenderGraphVisitor : boost::dfs_visitor<> {
793795
return;
794796
}
795797
}
796-
798+
#if CC_USE_DEBUG_RENDERER
799+
if (blit.blitType == BlitType::DRAW_PROFILE)
800+
{
801+
auto* renderPass = ctx.currentPass;
802+
auto* cmdBuff = ctx.cmdBuff;
803+
renderDebugRenderer(renderPass, cmdBuff, ctx.ppl->getPipelineSceneData(), cc::pipeline::profilerCamera);
804+
}
805+
#endif
797806
tryBindPassDescriptorSet(vertID);
798807
tryBindQueueDescriptorSets(vertID);
799808

0 commit comments

Comments
 (0)