preparing newly GraphModule/RenderModule/RenderPassManager/RenderFramework

This commit is contained in:
2025-01-16 02:10:03 +08:00
parent bd0a3d8be1
commit 911afc06f6
12 changed files with 332 additions and 45 deletions

View File

@@ -0,0 +1,46 @@
#pragma once
#include<hgl/graph/VK.h>
#include<hgl/platform/Window.h>
#include<hgl/graph/module/GraphModuleManager.h>
VK_NAMESPACE_BEGIN
class RenderPassManager;
class RenderFramework:public io::WindowEvent
{
OSString app_name;
Window * win =nullptr;
VulkanInstance * inst =nullptr;
GPUDevice * device =nullptr;
protected:
GraphModuleManager *module_manager =nullptr;
RenderPassManager * render_pass_manager =nullptr;
RenderPass * device_render_pass =nullptr;
public:
Window * GetWindow (){return win;}
GPUDevice * GetDevice (){return device;}
public:
GraphModuleManager *GetModuleManager(){return module_manager;}
RenderPassManager * GetRenderPassManager(){return render_pass_manager;}
public:
RenderFramework(const OSString &);
virtual ~RenderFramework();
virtual bool Init(uint w,uint h);
};//class RenderFramework
VK_NAMESPACE_END