2024-10-23 02:09:01 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include<hgl/graph/module/RenderModule.h>
|
|
|
|
|
|
|
|
VK_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class SwapchainModule:public GraphModule
|
|
|
|
{
|
2024-10-29 00:50:32 +08:00
|
|
|
Swapchain *swapchain=nullptr;
|
|
|
|
|
|
|
|
RTSwapchain *swapchain_rt=nullptr;
|
|
|
|
|
2024-11-06 00:34:23 +08:00
|
|
|
private:
|
|
|
|
|
|
|
|
bool CreateSwapchainFBO(Swapchain *);
|
|
|
|
|
|
|
|
Swapchain *CreateSwapchain(const VkExtent2D &acquire_extent);
|
|
|
|
|
2024-10-23 02:09:01 +08:00
|
|
|
public:
|
|
|
|
|
2024-10-23 23:22:41 +08:00
|
|
|
GRAPH_MODULE_CONSTRUCT(Swapchain)
|
2024-10-23 02:09:01 +08:00
|
|
|
virtual ~SwapchainModule()=default;
|
|
|
|
|
2024-10-29 00:50:32 +08:00
|
|
|
bool Init() override;
|
2024-10-23 02:09:01 +08:00
|
|
|
};//class SwapchainModule:public RenderModule
|
|
|
|
|
|
|
|
VK_NAMESPACE_END
|