// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Renderer module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_OPENGLRENDERER_OPENGLCOMMANDPOOL_HPP #define NAZARA_OPENGLRENDERER_OPENGLCOMMANDPOOL_HPP #include #include #include #include namespace Nz { class NAZARA_OPENGLRENDERER_API OpenGLCommandPool final : public CommandPool { public: inline OpenGLCommandPool(Vk::Device& device, QueueType queueType); inline OpenGLCommandPool(Vk::Device& device, UInt32 queueFamilyIndex); OpenGLCommandPool(const OpenGLCommandPool&) = delete; OpenGLCommandPool(OpenGLCommandPool&&) noexcept = default; ~OpenGLCommandPool() = default; std::unique_ptr BuildCommandBuffer(const std::function& callback) override; OpenGLCommandPool& operator=(const OpenGLCommandPool&) = delete; OpenGLCommandPool& operator=(OpenGLCommandPool&&) = delete; private: Vk::CommandPool m_commandPool; }; } #include #endif // NAZARA_OPENGLRENDERER_OPENGLCOMMANDPOOL_HPP