Skip to content

Commit 677d244

Browse files
committed
[render-graph] Default destructors instead of defining an empty one
1 parent 1ab7800 commit 677d244

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

include/inexor/vulkan-renderer/render_graph.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class PhysicalImage : public PhysicalResource {
320320
explicit PhysicalImage(const wrapper::Device &device) : PhysicalResource(device) {}
321321
PhysicalImage(const PhysicalImage &) = delete;
322322
PhysicalImage(PhysicalImage &&) = delete;
323-
~PhysicalImage() override;
323+
~PhysicalImage() override = default;
324324

325325
PhysicalImage &operator=(const PhysicalImage &) = delete;
326326
PhysicalImage &operator=(PhysicalImage &&) = delete;
@@ -361,7 +361,7 @@ class PhysicalStage : public RenderGraphObject {
361361
explicit PhysicalStage(const wrapper::Device &device) : m_device(device) {}
362362
PhysicalStage(const PhysicalStage &) = delete;
363363
PhysicalStage(PhysicalStage &&) = delete;
364-
~PhysicalStage() override;
364+
~PhysicalStage() override = default;
365365

366366
PhysicalStage &operator=(const PhysicalStage &) = delete;
367367
PhysicalStage &operator=(PhysicalStage &&) = delete;
@@ -384,7 +384,7 @@ class PhysicalGraphicsStage : public PhysicalStage {
384384
explicit PhysicalGraphicsStage(const wrapper::Device &device) : PhysicalStage(device) {}
385385
PhysicalGraphicsStage(const PhysicalGraphicsStage &) = delete;
386386
PhysicalGraphicsStage(PhysicalGraphicsStage &&) = delete;
387-
~PhysicalGraphicsStage() override;
387+
~PhysicalGraphicsStage() override = default;
388388

389389
PhysicalGraphicsStage &operator=(const PhysicalGraphicsStage &) = delete;
390390
PhysicalGraphicsStage &operator=(PhysicalGraphicsStage &&) = delete;

src/vulkan-renderer/render_graph.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ PhysicalBuffer::~PhysicalBuffer() {
5252
vmaDestroyBuffer(m_device.allocator(), m_buffer, m_allocation);
5353
}
5454

55-
PhysicalImage::~PhysicalImage() {}
56-
57-
PhysicalStage::~PhysicalStage() {}
58-
59-
PhysicalGraphicsStage::~PhysicalGraphicsStage() {}
60-
6155
void RenderGraph::build_buffer(const BufferResource &buffer_resource, PhysicalBuffer &physical) const {
6256
const VmaAllocationCreateInfo alloc_ci{
6357
.flags = VMA_ALLOCATION_CREATE_MAPPED_BIT,

0 commit comments

Comments
 (0)