// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Renderer module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz { RenderBuffer::~RenderBuffer() = default; BufferFactory GetRenderBufferFactory(std::shared_ptr device) { return [device = std::move(device)](BufferType type, UInt64 size, BufferUsageFlags usage, const void* initialData) -> std::shared_ptr { return device->InstantiateBuffer(type, size, usage, initialData); }; } }