From bd9e587691f1d1f209ee17ec3035f4f3c28215aa Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 19 Dec 2024 08:37:45 +0800 Subject: [PATCH] remove module_fullname from GraphModule. --- inc/hgl/graph/module/GraphModule.h | 5 ++--- src/SceneGraph/module/GraphModule.cpp | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/inc/hgl/graph/module/GraphModule.h b/inc/hgl/graph/module/GraphModule.h index 47c6cd14..3fb4c647 100644 --- a/inc/hgl/graph/module/GraphModule.h +++ b/inc/hgl/graph/module/GraphModule.h @@ -95,7 +95,6 @@ class GraphModule:public Comparator GraphModuleManager *module_manager; AnsiIDName module_name; - AnsiIDName module_fullname; bool module_inited; bool module_enabled; @@ -126,7 +125,7 @@ public: RenderFramework * GetFramework () {return module_manager->GetFramework();} ///<取得渲染框架 const AnsiIDName & GetName ()const {return module_name;} ///<取得模块名称(标准通用的名称,比如Upscale,供通用模块使用) - const AnsiIDName & GetFullName ()const {return module_fullname;} ///<取得名称(完整的私有名称,比如FSR3Upscale,DLSS3Upscale) + virtual const AnsiIDName & GetFullName ()const {return module_name;} ///<取得名称(完整的私有名称,比如FSR3Upscale,DLSS3Upscale) virtual const bool IsPerFrame () {return false;} ///<是否每帧运行 virtual const bool IsRender () {return false;} ///<是否为渲染模块 @@ -139,7 +138,7 @@ public: NO_COPY_NO_MOVE(GraphModule) - GraphModule(GraphModuleManager *gmm,const AnsiIDName &name,const AnsiIDName &fullname); + GraphModule(GraphModuleManager *gmm,const AnsiIDName &name); virtual ~GraphModule(); virtual const size_t GetTypeHash()const=0; diff --git a/src/SceneGraph/module/GraphModule.cpp b/src/SceneGraph/module/GraphModule.cpp index d6c37557..c0a1b2c6 100644 --- a/src/SceneGraph/module/GraphModule.cpp +++ b/src/SceneGraph/module/GraphModule.cpp @@ -18,11 +18,10 @@ bool GraphModulesMap::Add(GraphModule *gm) } -GraphModule::GraphModule(GraphModuleManager *gmm,const AnsiIDName &name,const AnsiIDName &fullname) +GraphModule::GraphModule(GraphModuleManager *gmm,const AnsiIDName &name) { module_manager=gmm; module_name=name; - module_fullname=fullname; LOG_INFO("GraphModule::GraphModule: "+AnsiString(module_name.GetName())) }