Added "RenderFramework *" in GraphModule and IRenderTarget

This commit is contained in:
2025-02-05 22:44:58 +08:00
parent 7ec1c095cc
commit e5a46f3ee8
23 changed files with 92 additions and 117 deletions

View File

@@ -5,11 +5,9 @@
VK_NAMESPACE_BEGIN
class GraphModule;
class GraphModuleManager
{
GPUDevice *device;
RenderFramework *render_framework;
protected:
@@ -18,13 +16,14 @@ protected:
public:
GraphModuleManager(GPUDevice *dev){device=dev;}
GraphModuleManager(RenderFramework *rf){render_framework=rf;}
virtual ~GraphModuleManager();
public:
GPUDevice * GetDevice() {return device;} ///<取得GPU设备
RenderFramework * GetRenderFramework ()const{return render_framework;} ///<取得渲染框架
GPUDevice * GetDevice ()const; ///<取得GPU设备
public:
@@ -46,7 +45,7 @@ public:
if(Contains<T>())
return Get<T>();
T *result=new T(device);
T *result=new T(render_framework);
Registry(result);