Formalize scene viewport transform gizmo overlay provider

This commit is contained in:
2026-04-03 16:50:46 +08:00
parent 03bd755e0a
commit 73415915e6
11 changed files with 198 additions and 141 deletions

View File

@@ -255,11 +255,6 @@ TEST(ViewportRenderFlowUtilsTest, BuildSceneViewportRenderPlanCollectsPostSceneA
overlay,
XCEngine::Math::Vector3::Zero(),
XCEngine::Math::Vector3::Right());
const SceneViewportOverlayFrameData transientOverlayFrameData =
CreateOverlayFrameDataWithLine(
overlay,
XCEngine::Math::Vector3::Zero(),
XCEngine::Math::Vector3::Up());
size_t factoryCallCount = 0u;
size_t combinedWorldLineCount = 0u;
@@ -270,7 +265,6 @@ TEST(ViewportRenderFlowUtilsTest, BuildSceneViewportRenderPlanCollectsPostSceneA
overlay,
{ 7u, 11u },
editorOverlayFrameData,
transientOverlayFrameData,
[&gridPassFactoryCallCount](const XCEngine::Rendering::Passes::InfiniteGridPassData& data) {
++gridPassFactoryCallCount;
EXPECT_TRUE(data.valid);
@@ -298,7 +292,7 @@ TEST(ViewportRenderFlowUtilsTest, BuildSceneViewportRenderPlanCollectsPostSceneA
EXPECT_EQ(factoryCallCount, 1u);
EXPECT_EQ(gridPassFactoryCallCount, 1u);
EXPECT_EQ(selectionOutlinePassFactoryCallCount, 1u);
EXPECT_EQ(combinedWorldLineCount, 2u);
EXPECT_EQ(combinedWorldLineCount, 1u);
EXPECT_EQ(result.warningStatusText, nullptr);
}
@@ -310,7 +304,6 @@ TEST(ViewportRenderFlowUtilsTest, BuildSceneViewportRenderPlanWarnsWhenSelection
overlay,
{ 42u },
{},
{},
[](const XCEngine::Rendering::Passes::InfiniteGridPassData&) {
return std::make_unique<NoopRenderPass>();
},