Split camera frame render-graph stage recording helpers

This commit is contained in:
2026-04-14 23:33:35 +08:00
parent 39c7ef5fdf
commit 3e5b7287c7
42 changed files with 820 additions and 703 deletions

View File

@@ -0,0 +1,44 @@
#pragma once
#include <XCEditor/Collections/UIEditorTreeView.h>
namespace XCEngine::UI::Editor::App {
inline constexpr ::XCEngine::UI::UIColor kProductTreeSurfaceColor(0.10f, 0.10f, 0.10f, 1.0f);
inline constexpr ::XCEngine::UI::UIColor kProductTreeHoverColor(0.13f, 0.13f, 0.13f, 1.0f);
inline constexpr ::XCEngine::UI::UIColor kProductTreeSelectedColor(0.16f, 0.16f, 0.16f, 1.0f);
inline constexpr ::XCEngine::UI::UIColor kProductTreeDisclosureColor(0.620f, 0.620f, 0.620f, 1.0f);
inline constexpr ::XCEngine::UI::UIColor kProductTreeTextColor(0.900f, 0.900f, 0.900f, 1.0f);
inline Widgets::UIEditorTreeViewMetrics BuildProductTreeViewMetrics() {
Widgets::UIEditorTreeViewMetrics metrics = {};
metrics.rowHeight = 20.0f;
metrics.rowGap = 0.0f;
metrics.horizontalPadding = 6.0f;
metrics.indentWidth = 14.0f;
metrics.disclosureExtent = 18.0f;
metrics.disclosureLabelGap = 2.0f;
metrics.iconExtent = 18.0f;
metrics.iconLabelGap = 2.0f;
metrics.iconInsetY = -1.0f;
metrics.labelInsetY = 0.0f;
metrics.cornerRounding = 0.0f;
metrics.borderThickness = 0.0f;
metrics.focusedBorderThickness = 0.0f;
return metrics;
}
inline Widgets::UIEditorTreeViewPalette BuildProductTreeViewPalette() {
Widgets::UIEditorTreeViewPalette palette = {};
palette.surfaceColor = kProductTreeSurfaceColor;
palette.borderColor = kProductTreeSurfaceColor;
palette.focusedBorderColor = kProductTreeSurfaceColor;
palette.rowHoverColor = kProductTreeHoverColor;
palette.rowSelectedColor = kProductTreeSelectedColor;
palette.rowSelectedFocusedColor = kProductTreeSelectedColor;
palette.disclosureColor = kProductTreeDisclosureColor;
palette.textColor = kProductTreeTextColor;
return palette;
}
} // namespace XCEngine::UI::Editor::App