refactor(rendering): infer raster pass graph io from declared context

This commit is contained in:
2026-04-15 13:07:09 +08:00
parent 2605608685
commit 3f0f279000
4 changed files with 59 additions and 22 deletions

View File

@@ -779,17 +779,9 @@ public:
lastRecordedBlackboardMainSceneColorValid = false;
lastRecordedBlackboardPostProcessColorValid = false;
}
const bool writesColor =
context.sourceSurface != nullptr ||
!context.colorTargets.empty();
return RecordRasterRenderPass(
return RecordDeclaredRasterPass(
*this,
context,
{
context.sourceSurface != nullptr,
writesColor,
context.depthTarget.IsValid()
});
context);
}
bool Initialize(const RenderContext&) override {