46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
// 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_RENDERPIPELINELAYOUT_HPP
|
|
#define NAZARA_RENDERPIPELINELAYOUT_HPP
|
|
|
|
#include <Nazara/Core/MovablePtr.hpp>
|
|
#include <Nazara/Renderer/Enums.hpp>
|
|
#include <Nazara/Renderer/ShaderBinding.hpp>
|
|
#include <Nazara/Utility/Enums.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Nz
|
|
{
|
|
struct RenderPipelineLayoutInfo
|
|
{
|
|
struct Binding
|
|
{
|
|
UInt32 setIndex = 0;
|
|
UInt32 bindingIndex;
|
|
ShaderBindingType type;
|
|
ShaderStageTypeFlags shaderStageFlags;
|
|
};
|
|
|
|
std::vector<Binding> bindings;
|
|
};
|
|
|
|
class NAZARA_RENDERER_API RenderPipelineLayout
|
|
{
|
|
public:
|
|
RenderPipelineLayout() = default;
|
|
virtual ~RenderPipelineLayout();
|
|
|
|
virtual ShaderBindingPtr AllocateShaderBinding(UInt32 setIndex) = 0;
|
|
};
|
|
}
|
|
|
|
#include <Nazara/Renderer/RenderPipelineLayout.inl>
|
|
|
|
#endif // NAZARA_RENDERPIPELINELAYOUT_HPP
|