rendering: formalize editor support object id boundary

This commit is contained in:
2026-04-22 16:17:27 +08:00
parent 17326f455e
commit ab87ad85d7
30 changed files with 646 additions and 178 deletions

View File

@@ -128,7 +128,13 @@ bool CompareVisibleGaussianSplats(
void BuildRendererLists(RenderSceneData& sceneData) {
sceneData.cullingResults.Clear();
sceneData.cullingResults.rendererLists.reserve(5u);
sceneData.cullingResults.rendererLists.reserve(
#if XCENGINE_ENABLE_RENDERING_EDITOR_SUPPORT
5u
#else
4u
#endif
);
sceneData.cullingResults.rendererLists.push_back(
BuildRendererList(RendererListType::AllVisible, sceneData.visibleItems));
sceneData.cullingResults.rendererLists.push_back(
@@ -137,8 +143,10 @@ void BuildRendererLists(RenderSceneData& sceneData) {
BuildRendererList(RendererListType::Transparent, sceneData.visibleItems));
sceneData.cullingResults.rendererLists.push_back(
BuildRendererList(RendererListType::ShadowCaster, sceneData.visibleItems));
#if XCENGINE_ENABLE_RENDERING_EDITOR_SUPPORT
sceneData.cullingResults.rendererLists.push_back(
BuildRendererList(RendererListType::ObjectId, sceneData.visibleItems));
#endif
}
} // namespace