pipeline and renderpass used auto release.

This commit is contained in:
2021-11-30 19:33:01 +08:00
parent 8e3f60b120
commit 3c79a01a70
4 changed files with 5 additions and 7 deletions

View File

@@ -107,7 +107,6 @@ public:
SAFE_CLEAR(render_list);
SAFE_CLEAR(gbuffer.cmd);
SAFE_CLEAR(gbuffer.rt);
SAFE_CLEAR(gbuffer.rp);
}
private:

View File

@@ -39,7 +39,7 @@ class TestApp:public CameraAppFramework
return(true);
}
}os;
struct:public RenderObject
{
Sampler * sampler =nullptr;
@@ -48,7 +48,7 @@ class TestApp:public CameraAppFramework
RenderableInstance *renderable_instance =nullptr;
SceneNode scene_root;
RenderList *render_list =nullptr;
RenderList * render_list =nullptr;
}cube;
public:
@@ -56,7 +56,6 @@ public:
~TestApp()
{
SAFE_CLEAR(cube.render_list);
SAFE_CLEAR(os.pipeline);
SAFE_CLEAR(os.render_taget);
}

View File

@@ -51,11 +51,11 @@ GPUDevice::GPUDevice(GPUDeviceAttribute *da)
GPUDevice::~GPUDevice()
{
ClearRenderPassManage();
SAFE_CLEAR(swapchainRT);
SAFE_CLEAR(swapchain);
ClearRenderPassManage();
SAFE_CLEAR(texture_queue);
SAFE_CLEAR(texture_cmd_buf);

View File

@@ -204,7 +204,7 @@ DeviceRenderPassManage::~DeviceRenderPassManage()
{
delete (*obj)->right;
++obj;
++obj;
}
RenderPassList.Clear();