// 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_OPENGLCOMMANDBUFFER_HPP #define NAZARA_OPENGLRENDERER_OPENGLCOMMANDBUFFER_HPP #include #include #include #include #include namespace Nz { class NAZARA_OPENGLRENDERER_API OpenGLCommandBuffer final : public CommandBuffer { public: inline OpenGLCommandBuffer(Vk::AutoCommandBuffer commandBuffer); inline OpenGLCommandBuffer(std::vector commandBuffers); OpenGLCommandBuffer(const OpenGLCommandBuffer&) = delete; OpenGLCommandBuffer(OpenGLCommandBuffer&&) noexcept = default; ~OpenGLCommandBuffer() = default; inline Vk::CommandBuffer& GetCommandBuffer(std::size_t imageIndex = 0); OpenGLCommandBuffer& operator=(const OpenGLCommandBuffer&) = delete; OpenGLCommandBuffer& operator=(OpenGLCommandBuffer&&) = delete; private: std::vector m_commandBuffers; }; } #include #endif // NAZARA_OPENGLRENDERER_OPENGLCOMMANDBUFFER_HPP