From 2e6cc9b12731dfbbffc1f44e1ebb343e55fd9524 Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Fri, 3 Jul 2026 18:25:21 +0800 Subject: [PATCH] fix(custom-pipeline): Creates a blit descriptor bug (#169) --- cocos/rendering/custom/executor.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cocos/rendering/custom/executor.ts b/cocos/rendering/custom/executor.ts index ffcbfd764f..1013e078e4 100644 --- a/cocos/rendering/custom/executor.ts +++ b/cocos/rendering/custom/executor.ts @@ -615,10 +615,17 @@ class DeviceRenderQueue implements RecordingInterface { this._devicePass = devicePass; this._phaseID = cclegacy.rendering.getPhaseID(devicePass.passID, context.renderGraph.getLayout(id)); } + + /** + * @en Creates a blit descriptor for the given blit operation. + * @zh 为给定的 blit 操作创建一个 blit 描述符。 + * @param blit @en The blit operation to create a descriptor for. @zh 要为其创建描述符的 blit 操作。 + */ createBlitDesc (blit: Blit): void { if (!this._blitDesc) { this._blitDesc = new BlitDesc(blit); } + this._blitDesc.blit = blit; this._blitDesc.createScreenQuad(); this._blitDesc.createStageDescriptor(); }