moved codes to VKDeviceRenderPassManage.cpp/.h

This commit is contained in:
2021-09-22 16:28:39 +08:00
parent b5188a63ea
commit f0ae8f5dae
10 changed files with 411 additions and 421 deletions

View File

@@ -9,6 +9,7 @@
#include<hgl/graph/VKRenderPass.h>
#include<hgl/graph/VKFramebuffer.h>
#include<hgl/graph/VKDescriptorSets.h>
#include<hgl/graph/VKDeviceRenderPassManage.h>
VK_NAMESPACE_BEGIN
GPUDevice::GPUDevice(GPUDeviceAttribute *da)
@@ -18,6 +19,8 @@ GPUDevice::GPUDevice(GPUDeviceAttribute *da)
texture_queue=nullptr;
texture_cmd_buf=nullptr;
InitRenderPassManage();
swapchain=nullptr;
swapchainRT=nullptr;
Resize(attr->surface_caps.currentExtent);
@@ -28,6 +31,8 @@ GPUDevice::~GPUDevice()
SAFE_CLEAR(swapchainRT);
SAFE_CLEAR(swapchain);
delete(render_pass_manage);
SAFE_CLEAR(texture_queue);
SAFE_CLEAR(texture_cmd_buf);