Skip to content
Snippets Groups Projects
Commit 7f5c76a8 authored by Lars Hoerttrich's avatar Lars Hoerttrich
Browse files

[#22] Changed create function in core

parent 911ff109
Branches
Tags
1 merge request!18Resolve "Resource Management"
Pipeline #24891 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment