ordered module_list in RenderFramework
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user