[BIG MILESTONE] render framework first test ok! can draw!

This commit is contained in:
2025-01-25 17:17:55 +08:00
parent aafdbdd4ea
commit 2e53b48fff
8 changed files with 125 additions and 37 deletions

View File

@@ -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;}

View File

@@ -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相关

View File

@@ -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