49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// 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
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_RENDERER_RENDERPIPELINE_HPP
|
|
#define NAZARA_RENDERER_RENDERPIPELINE_HPP
|
|
|
|
#include <Nazara/Renderer/RenderPipelineLayout.hpp>
|
|
#include <Nazara/Renderer/RenderStates.hpp>
|
|
#include <Nazara/Utility/Enums.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
struct RenderPipelineInfo : RenderStates
|
|
{
|
|
struct VertexBufferData
|
|
{
|
|
std::size_t binding;
|
|
std::shared_ptr<const VertexDeclaration> declaration;
|
|
};
|
|
|
|
std::shared_ptr<RenderPipelineLayout> pipelineLayout;
|
|
std::vector<std::shared_ptr<ShaderModule>> shaderModules;
|
|
std::vector<VertexBufferData> vertexBuffers;
|
|
};
|
|
|
|
class RenderDevice;
|
|
|
|
class NAZARA_RENDERER_API RenderPipeline
|
|
{
|
|
public:
|
|
RenderPipeline() = default;
|
|
virtual ~RenderPipeline();
|
|
|
|
virtual const RenderPipelineInfo& GetPipelineInfo() const = 0;
|
|
|
|
virtual void UpdateDebugName(std::string_view name) = 0;
|
|
|
|
protected:
|
|
static void ValidatePipelineInfo(const RenderDevice& device, RenderPipelineInfo& pipelineInfo);
|
|
};
|
|
}
|
|
|
|
#include <Nazara/Renderer/RenderPipeline.inl>
|
|
|
|
#endif // NAZARA_RENDERER_RENDERPIPELINE_HPP
|