// Copyright (C) 2021 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 #pragma once #ifndef NAZARA_RENDERER_COMMANDBUFFER_HPP #define NAZARA_RENDERER_COMMANDBUFFER_HPP #include #include #include namespace Nz { class CommandBuffer; class CommandBufferDeleter; using CommandBufferPtr = std::unique_ptr; class NAZARA_RENDERER_API CommandBuffer { friend CommandBufferDeleter; public: CommandBuffer() = default; CommandBuffer(const CommandBuffer&) = delete; CommandBuffer(CommandBuffer&&) = delete; virtual ~CommandBuffer(); CommandBuffer& operator=(const CommandBuffer&) = delete; CommandBuffer& operator=(CommandBuffer&&) = delete; protected: virtual void Release() = 0; }; class CommandBufferDeleter { public: inline void operator()(CommandBuffer* commandBuffer); }; } #include #endif // NAZARA_RENDERER_COMMANDBUFFER_HPP