moved device_render_pass to RenderFramework from GPUDevice.

This commit is contained in:
2025-01-18 20:28:14 +08:00
parent 911afc06f6
commit ff8222c256
10 changed files with 120 additions and 47 deletions

View File

@@ -8,7 +8,6 @@
#include<hgl/graph/VKRenderPass.h>
#include<hgl/graph/VKFramebuffer.h>
#include<hgl/graph/VKDescriptorSet.h>
#include<hgl/graph/VKDeviceRenderPassManage.h>
VK_NAMESPACE_BEGIN
GPUDevice::GPUDevice(GPUDeviceAttribute *da)
@@ -18,8 +17,6 @@ GPUDevice::GPUDevice(GPUDeviceAttribute *da)
texture_queue=nullptr;
texture_cmd_buf=nullptr;
InitRenderPassManage();
sc_rt=nullptr;
Resize(attr->surface_caps.currentExtent);
@@ -29,8 +26,6 @@ GPUDevice::GPUDevice(GPUDeviceAttribute *da)
GPUDevice::~GPUDevice()
{
ClearRenderPassManage();
SAFE_CLEAR(sc_rt);
SAFE_CLEAR(texture_queue);