remove module_fullname from GraphModule.

This commit is contained in:
hyzboy 2024-12-19 08:37:45 +08:00
parent 260fb1b2ba
commit bd9e587691
2 changed files with 3 additions and 5 deletions

View File

@ -95,7 +95,6 @@ class GraphModule:public Comparator<GraphModule>
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;

View File

@ -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()))
}