redefrag SwapchainModule

This commit is contained in:
2024-11-09 00:58:13 +08:00
parent 25be75eefa
commit 64e8410f3f
2 changed files with 66 additions and 34 deletions

View File

@@ -10,22 +10,22 @@ class SwapchainModule:public GraphModule
RTSwapchain *swapchain_rt=nullptr;
RenderPass *swapchain_rp=nullptr;
protected:
bool CreateSwapchainFBO();
bool CreateSwapchain();
bool CreateSwapchainRenderTarget();
bool CreateSwapchainFBO(Swapchain *);
public:
GRAPH_MODULE_CONSTRUCT(SwapchainModule)
virtual ~SwapchainModule()=default;
virtual ~SwapchainModule();
bool Init() override;
RenderPass * GetRenderPass () {return swapchain_rp;}
RTSwapchain * GetRenderTarget () {return swapchain_rt;}
const VkExtent2D & GetSwapchainSize()const {return swapchain_rt->GetExtent();}