[BIG MILESTONE] render framework first test ok! can draw!
This commit is contained in:
@@ -24,6 +24,8 @@ class RenderFramework:public io::WindowEvent
|
||||
|
||||
GPUDevice * device =nullptr;
|
||||
|
||||
RenderResource * render_resource =nullptr;
|
||||
|
||||
private:
|
||||
|
||||
double last_time =0;
|
||||
@@ -47,6 +49,8 @@ public:
|
||||
GPUDevice * GetDevice (){return device;}
|
||||
GPUDeviceAttribute * GetDeviceAttribute (){return device->GetDeviceAttribute();}
|
||||
|
||||
RenderResource * GetRenderResource (){return render_resource;}
|
||||
|
||||
public:
|
||||
|
||||
GraphModuleManager * GetModuleManager (){return module_manager;}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/module/GraphModule.h>
|
||||
|
||||
@@ -15,7 +15,7 @@ GRAPH_MODULE_CLASS(RenderTargetManager)
|
||||
public:
|
||||
|
||||
RenderTargetManager(GPUDevice *,TextureManager *tm,RenderPassManager *rpm);
|
||||
virtual ~RenderTargetManager();
|
||||
virtual ~RenderTargetManager()=default;
|
||||
|
||||
public: //FrameBuffer相关
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include<hgl/graph/module/GraphModule.h>
|
||||
|
||||
@@ -37,9 +37,11 @@ public:
|
||||
|
||||
public:
|
||||
|
||||
const VkExtent2D & GetSwapchainSize()const {return swapchain_rt->GetExtent();}
|
||||
RenderPass * GetRenderPass ()const{return swapchain_rt->GetRenderPass();}
|
||||
|
||||
RenderCmdBuffer *Use();
|
||||
const VkExtent2D & GetSwapchainSize()const{return swapchain_rt->GetExtent();}
|
||||
|
||||
RenderCmdBuffer *RecordCmdBuffer(int frame_index=-1);
|
||||
|
||||
};//class SwapchainModule:public GraphModule
|
||||
|
||||
|
Reference in New Issue
Block a user