Add command buffers (WIP)
This commit is contained in:
42
include/Nazara/Renderer/RenderImage.hpp
Normal file
42
include/Nazara/Renderer/RenderImage.hpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// 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_RENDERIMAGE_HPP
|
||||
#define NAZARA_RENDERIMAGE_HPP
|
||||
|
||||
#include <Nazara/Prerequisites.hpp>
|
||||
#include <Nazara/Renderer/Config.hpp>
|
||||
#include <functional>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
class CommandBuffer;
|
||||
class CommandBufferBuilder;
|
||||
class UploadPool;
|
||||
|
||||
class NAZARA_RENDERER_API RenderImage
|
||||
{
|
||||
public:
|
||||
RenderImage() = default;
|
||||
virtual ~RenderImage();
|
||||
|
||||
virtual void Execute(const std::function<void(CommandBufferBuilder& builder)>& callback, bool isGraphical) = 0;
|
||||
|
||||
virtual UploadPool& GetUploadPool() = 0;
|
||||
|
||||
virtual void SubmitCommandBuffer(CommandBuffer* commandBuffer, bool isGraphical) = 0;
|
||||
|
||||
virtual void Present() = 0;
|
||||
|
||||
protected:
|
||||
RenderImage(const RenderImage&) = delete;
|
||||
RenderImage(RenderImage&&) = default;
|
||||
};
|
||||
}
|
||||
|
||||
#include <Nazara/Renderer/RenderImage.inl>
|
||||
|
||||
#endif // NAZARA_RENDERIMAGE_HPP
|
||||
Reference in New Issue
Block a user