ordered module_list in RenderFramework

This commit is contained in:
2024-11-19 00:20:35 +08:00
parent 5217df7923
commit 4f335f7230
10 changed files with 63 additions and 34 deletions

View File

@@ -38,6 +38,9 @@ protected:
ObjectList<GraphModule> module_list;
List<GraphModule *> per_frame_module_list;
List<RenderModule *> render_module_list;
protected:
SwapchainModule * swapchain_module =nullptr;
@@ -73,6 +76,12 @@ public: //module
module_list.Add(tm);
if(tm->IsPerFrame())
per_frame_module_list.Add(tm);
if(tm->IsRender())
render_module_list.Add(tm);
return tm;
}