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,27 @@
#pragma once
#include<hgl/graph/module/GraphModule.h>
#include<hgl/type/Size2.h>
VK_NAMESPACE_BEGIN
/**
* 渲染模块基类
*/
class RenderModule:public GraphModule
{
VkExtent2D current_extent;
public:
NO_COPY_NO_MOVE(RenderModule)
using GraphModule::GraphModule;
virtual ~RenderModule()=default;
virtual void OnResize(const VkExtent2D &ext){current_extent=ext;} ///<窗口大小改变
virtual void OnFrameRender(const double,RenderCmdBuffer *)=0; ///<帧绘制回调
};//class RenderModule
VK_NAMESPACE_END