Align managed render graph authoring surface

This commit is contained in:
2026-04-28 03:55:04 +08:00
parent 6b312804eb
commit a7baf16e09
9 changed files with 279 additions and 119 deletions

View File

@@ -1693,7 +1693,7 @@ TEST_F(
TEST_F(
MonoScriptRuntimeTest,
ScriptableRenderContextPublicApiSurfaceUsesDirectContextModel) {
ScriptableRenderContextPublicApiSurfaceUsesRenderGraphAuthoringModel) {
Scene* runtimeScene =
CreateScene("ScriptableRenderContextApiSurfaceScene");
GameObject* selectionObject =
@@ -1724,6 +1724,13 @@ TEST_F(
bool hasPublicContextEnvironmentData = false;
bool hasPublicContextFinalColorData = false;
bool hasPublicContextStageColorData = false;
bool hasPublicContextSourceColorTexture = false;
bool hasPublicContextPrimaryColorTarget = false;
bool hasPublicContextDepthTarget = false;
bool hasPublicContextCreateTransientTexture = false;
bool hasPublicContextCreateFullscreenTransientColorTexture = false;
bool hasPublicContextCreateFullscreenTransientDepthTexture = false;
bool hasPublicContextAddRasterPass = false;
bool hasPublicContextFramePlanId = false;
bool hasPublicRequestContextHasDirectionalShadow = false;
bool hasPublicRequestContextClearDirectionalShadow = false;
@@ -1766,6 +1773,7 @@ TEST_F(
bool hasRenderGraphRasterContextCommandBuffer = false;
bool hasSceneRenderPhaseType = false;
bool hasSceneRenderInjectionPointType = false;
bool hasRenderGraphAddRasterPass = false;
bool hasRenderGraphCreateRendererList = false;
bool hasRendererListHandleType = false;
bool hasCommandBufferDrawRendererList = false;
@@ -1835,6 +1843,34 @@ TEST_F(
selectionScript,
"HasPublicContextStageColorData",
hasPublicContextStageColorData));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextSourceColorTexture",
hasPublicContextSourceColorTexture));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextPrimaryColorTarget",
hasPublicContextPrimaryColorTarget));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextDepthTarget",
hasPublicContextDepthTarget));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextCreateTransientTexture",
hasPublicContextCreateTransientTexture));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextCreateFullscreenTransientColorTexture",
hasPublicContextCreateFullscreenTransientColorTexture));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextCreateFullscreenTransientDepthTexture",
hasPublicContextCreateFullscreenTransientDepthTexture));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextAddRasterPass",
hasPublicContextAddRasterPass));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasPublicContextFramePlanId",
@@ -2003,6 +2039,10 @@ TEST_F(
selectionScript,
"HasSceneRenderInjectionPointType",
hasSceneRenderInjectionPointType));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasRenderGraphAddRasterPass",
hasRenderGraphAddRasterPass));
EXPECT_TRUE(runtime->TryGetFieldValue(
selectionScript,
"HasRenderGraphCreateRendererList",
@@ -2051,7 +2091,14 @@ TEST_F(
EXPECT_FALSE(hasPublicContextEnvironmentData);
EXPECT_FALSE(hasPublicContextFinalColorData);
EXPECT_FALSE(hasPublicContextStageColorData);
EXPECT_TRUE(hasPublicContextFramePlanId);
EXPECT_FALSE(hasPublicContextSourceColorTexture);
EXPECT_FALSE(hasPublicContextPrimaryColorTarget);
EXPECT_FALSE(hasPublicContextDepthTarget);
EXPECT_FALSE(hasPublicContextCreateTransientTexture);
EXPECT_FALSE(hasPublicContextCreateFullscreenTransientColorTexture);
EXPECT_FALSE(hasPublicContextCreateFullscreenTransientDepthTexture);
EXPECT_FALSE(hasPublicContextAddRasterPass);
EXPECT_FALSE(hasPublicContextFramePlanId);
EXPECT_FALSE(hasPublicRequestContextHasDirectionalShadow);
EXPECT_FALSE(hasPublicRequestContextClearDirectionalShadow);
EXPECT_FALSE(hasUniversalContextRecordSceneExtension);
@@ -2093,6 +2140,7 @@ TEST_F(
EXPECT_TRUE(hasRenderGraphRasterContextCommandBuffer);
EXPECT_FALSE(hasSceneRenderPhaseType);
EXPECT_FALSE(hasSceneRenderInjectionPointType);
EXPECT_TRUE(hasRenderGraphAddRasterPass);
EXPECT_TRUE(hasRenderGraphCreateRendererList);
EXPECT_TRUE(hasRendererListHandleType);
EXPECT_TRUE(hasCommandBufferDrawRendererList);