refactor(rendering): remove main scene stage recording special cases

This commit is contained in:
2026-04-15 16:18:35 +08:00
parent 03ee1706ae
commit c853f67c56
4 changed files with 10 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ bool TryRecordCameraFrameMainSceneGraphPass(
const CameraFrameRenderGraphStageContext& context,
bool& handled) {
CameraFrameRenderGraphBuilderContext& builder = context.builder;
if (stageState.stage != CameraFrameStage::MainScene ||
if (!SupportsCameraFramePipelineGraphRecording(stageState.stage) ||
builder.executionState.pipeline == nullptr ||
!builder.executionState.pipeline->SupportsMainSceneRenderGraph()) {
handled = false;

View File

@@ -37,8 +37,7 @@ bool RecordCameraFrameRenderGraphStages(
builderContext
};
for (const CameraFrameStageInfo& stageInfo : kOrderedCameraFrameStages) {
if (!plan.HasFrameStage(stageInfo.stage) &&
stageInfo.stage != CameraFrameStage::MainScene) {
if (!plan.HasFrameStage(stageInfo.stage)) {
continue;
}