1 | // Copyright (C) 2020 Klaralvdalens Datakonsult AB (KDAB). |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "rhirendertarget_p.h" |
5 | QT_BEGIN_NAMESPACE |
6 | |
7 | namespace Qt3DRender { |
8 | |
9 | namespace Render { |
10 | |
11 | namespace Rhi { |
12 | |
13 | void RHIRenderTarget::cleanup() |
14 | { |
15 | delete renderPassDescriptor; |
16 | delete renderTarget; |
17 | delete depthStencilBuffer; |
18 | renderPassDescriptor = nullptr; |
19 | renderTarget = nullptr; |
20 | depthStencilBuffer = nullptr; |
21 | } |
22 | |
23 | RHIRenderTarget::~RHIRenderTarget() |
24 | { |
25 | } |
26 | |
27 | } // namespace Rhi |
28 | } // namespace Render |
29 | } // namespace Qt3DRender |
30 | |
31 | QT_END_NAMESPACE |
32 |