moved device_render_pass to RenderFramework from GPUDevice.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/VK.h>
|
||||
#include<hgl/platform/Window.h>
|
||||
@@ -29,11 +29,14 @@ public:
|
||||
Window * GetWindow (){return win;}
|
||||
GPUDevice * GetDevice (){return device;}
|
||||
|
||||
RenderPass * GetRenderPass (){return device_render_pass;}
|
||||
|
||||
public:
|
||||
|
||||
GraphModuleManager *GetModuleManager(){return module_manager;}
|
||||
RenderPassManager * GetRenderPassManager(){return render_pass_manager;}
|
||||
|
||||
|
||||
public:
|
||||
|
||||
RenderFramework(const OSString &);
|
||||
@@ -41,6 +44,12 @@ public:
|
||||
|
||||
virtual bool Init(uint w,uint h);
|
||||
|
||||
public: // event
|
||||
|
||||
void OnResize(uint w,uint h);
|
||||
void OnActive(bool);
|
||||
void OnClose();
|
||||
|
||||
};//class RenderFramework
|
||||
|
||||
VK_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user