moved OnResize to GraphModule from RenderModule
This commit is contained in:
parent
96c3718b2a
commit
414142283b
@ -16,6 +16,10 @@ public:
|
|||||||
const GPUPhysicalDevice * GetPhysicalDevice ()const {return device->GetPhysicalDevice();} ///<取得物理设备
|
const GPUPhysicalDevice * GetPhysicalDevice ()const {return device->GetPhysicalDevice();} ///<取得物理设备
|
||||||
GPUDeviceAttribute *GetDeviceAttribute () {return device->GetDeviceAttribute();} ///<取得设备属性
|
GPUDeviceAttribute *GetDeviceAttribute () {return device->GetDeviceAttribute();} ///<取得设备属性
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
virtual void OnResize(const VkExtent2D &){}; ///<窗口大小改变
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
GraphModule(GPUDevice *dev){device=dev;}
|
GraphModule(GPUDevice *dev){device=dev;}
|
||||||
|
@ -17,9 +17,7 @@ public:
|
|||||||
using GraphModule::GraphModule;
|
using GraphModule::GraphModule;
|
||||||
virtual ~RenderModule()=default;
|
virtual ~RenderModule()=default;
|
||||||
|
|
||||||
virtual void OnResize(const VkExtent2D &)=0; ///<窗口大小改变
|
virtual bool OnFrameRender(const double,RenderCmdBuffer *)=0; ///<帧绘制回调
|
||||||
|
|
||||||
//virtual void OnFrameRender(const double,RenderCmdBuffer *)=0; ///<帧绘制回调
|
|
||||||
};//class RenderModule
|
};//class RenderModule
|
||||||
|
|
||||||
#define RENDER_MODULE_CLASS(class_name) class class_name:public GraphModuleInherit<class_name,RenderModule>
|
#define RENDER_MODULE_CLASS(class_name) class class_name:public GraphModuleInherit<class_name,RenderModule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user