From 7f5c76a81a64c8bbccead0442c79e2dcede534e7 Mon Sep 17 00:00:00 2001 From: Lars Hoerttrich <larshoerttrich@uni-koblenz.de> Date: Wed, 19 May 2021 13:00:52 +0200 Subject: [PATCH] [#22] Changed create function in core --- include/vkcv/Core.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/vkcv/Core.hpp b/include/vkcv/Core.hpp index c4ef0f8b..93ab5d4c 100644 --- a/include/vkcv/Core.hpp +++ b/include/vkcv/Core.hpp @@ -100,7 +100,9 @@ namespace vkcv */ template<typename T> Buffer<T> createBuffer(vkcv::BufferType bufferType,size_t size) { - return Buffer<T>(m_Context.getDevice(),m_Context.getPhysicalDevice(), bufferType,size); + Buffer<T> buffer(m_Context.getDevice(), m_Context.getPhysicalDevice(), bufferType, size); + return std::move(buffer); + //return std::move(Buffer<T>(m_Context.getDevice(),m_Context.getPhysicalDevice, bufferType,size)); }; PassHandle createRenderPass(const Renderpass &pass) ; PipelineHandle createPipeline(const Pipeline &pipeline); -- GitLab