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

32 lines
570 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:
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;}
virtual void OnExecute(const double,RenderCmdBuffer *){}
2024-10-22 01:51:25 +08:00
};//class RenderModule
VK_NAMESPACE_END