ULRE/inc/hgl/graph/module/RenderModule.h

33 lines
809 B
C
Raw Normal View History

2024-10-22 01:51:25 +08:00
#pragma once
#include<hgl/graph/module/GraphModule.h>
#include<hgl/type/Size2.h>
VK_NAMESPACE_BEGIN
/**
*
*/
class RenderModule:public GraphModule
{
VkExtent2D current_extent;
public:
2024-11-19 00:20:35 +08:00
const bool IsPerFrame ()const noexcept{return true;} ///<每帧运行
const bool IsRender ()const noexcept{return true;} ///<渲染模块
2024-10-22 01:51:25 +08:00
public:
NO_COPY_NO_MOVE(RenderModule)
using GraphModule::GraphModule;
2024-10-22 01:51:25 +08:00
virtual ~RenderModule()=default;
virtual void OnResize(const VkExtent2D &ext)override{current_extent=ext;}
2024-11-19 00:20:35 +08:00
virtual void OnFrameRender(const double,RenderCmdBuffer *)=0; ///<帧绘制回调
2024-10-22 01:51:25 +08:00
};//class RenderModule
VK_NAMESPACE_END