refactor(srp): hide pipeline data behind rendering data

This commit is contained in:
2026-04-19 13:12:26 +08:00
parent 0cea7b80e8
commit 08e2b38df2
3 changed files with 72 additions and 6 deletions

View File

@@ -1155,6 +1155,12 @@ TEST_F(
bool hasPublicContextRecordOpaqueScenePhase = false;
bool hasPublicContextRecordBeforeOpaqueInjection = false;
bool hasPublicContextRecordShaderVectorFullscreenPass = false;
bool hasPublicContextCameraData = false;
bool hasPublicContextLightingData = false;
bool hasPublicContextShadowData = false;
bool hasPublicContextEnvironmentData = false;
bool hasPublicContextFinalColorData = false;
bool hasPublicContextStageColorData = false;
bool hasPublicCameraRequestContextHasDirectionalShadow = false;
bool hasPublicCameraRequestContextClearDirectionalShadow = false;
bool hasRendererRecordingContextType = false;
@@ -1176,6 +1182,30 @@ TEST_F(
selectionScript,
"HasPublicContextRecordShaderVectorFullscreenPass",
hasPublicContextRecordShaderVectorFullscreenPass));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextCameraData",
hasPublicContextCameraData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextLightingData",
hasPublicContextLightingData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextShadowData",
hasPublicContextShadowData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextEnvironmentData",
hasPublicContextEnvironmentData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextFinalColorData",
hasPublicContextFinalColorData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextStageColorData",
hasPublicContextStageColorData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicCameraRequestContextHasDirectionalShadow",
@@ -1197,6 +1227,12 @@ TEST_F(
EXPECT_TRUE(hasPublicContextRecordOpaqueScenePhase);
EXPECT_TRUE(hasPublicContextRecordBeforeOpaqueInjection);
EXPECT_TRUE(hasPublicContextRecordShaderVectorFullscreenPass);
EXPECT_FALSE(hasPublicContextCameraData);
EXPECT_FALSE(hasPublicContextLightingData);
EXPECT_FALSE(hasPublicContextShadowData);
EXPECT_FALSE(hasPublicContextEnvironmentData);
EXPECT_FALSE(hasPublicContextFinalColorData);
EXPECT_FALSE(hasPublicContextStageColorData);
EXPECT_TRUE(hasPublicCameraRequestContextHasDirectionalShadow);
EXPECT_TRUE(hasPublicCameraRequestContextClearDirectionalShadow);
EXPECT_FALSE(hasRendererRecordingContextType);