From 4f870edc3baa8f1d404db41d49f642c00446498c Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 29 Oct 2024 00:50:15 +0800 Subject: [PATCH] redefined RenderFramework --- inc/hgl/graph/RenderFramework.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/inc/hgl/graph/RenderFramework.h b/inc/hgl/graph/RenderFramework.h index a008db92..76d6b564 100644 --- a/inc/hgl/graph/RenderFramework.h +++ b/inc/hgl/graph/RenderFramework.h @@ -90,6 +90,10 @@ public: virtual ~GraphModuleWorkConfig()=default; };//class GraphModuleWorkConfig +class Window; +class SwapchainModule; +class TextureModule; + /** * 渲染框架 */ @@ -99,17 +103,19 @@ class RenderFramework protected: - ViewportInfo viewport_info; + Window * win =nullptr; + VulkanInstance * inst =nullptr; - int swap_chain_count =0; + GPUDevice * device =nullptr; + +protected: + + TextureModule * texture_module =nullptr; + SwapchainModule * swapchain_module =nullptr; protected: - GPUDevice * device =nullptr; - RenderPass * device_render_pass =nullptr; - RTSwapchain * default_rt =nullptr; - - RenderCmdBuffer ** render_cmd_buffers =nullptr; + ViewportInfo viewport_info; private: