* Move code to NazaraUtils and NZSL packages
* Reorder includes
* Tests: Remove glslang and spirv-tools deps
* Tests: Remove glslang init
* Remove NazaraUtils tests and fix Vector4Test
* Fix Linux compilation
* Update msys2-build.yml
* Fix assimp package
* Update xmake.lua
* Update xmake.lua
* Fix shader compilation on MinGW
* Final fixes
* The final fix 2: the fix strikes back!
* Disable cache on CI
* The return of the fix™️
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// Copyright (C) 2022 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_RENDERPIPELINELAYOUT_HPP
|
|
#define NAZARA_RENDERER_RENDERPIPELINELAYOUT_HPP
|
|
|
|
#include <Nazara/Renderer/Enums.hpp>
|
|
#include <Nazara/Renderer/ShaderBinding.hpp>
|
|
#include <Nazara/Utils/MovablePtr.hpp>
|
|
#include <NZSL/Enums.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Nz
|
|
{
|
|
struct RenderPipelineLayoutInfo
|
|
{
|
|
struct Binding
|
|
{
|
|
UInt32 setIndex = 0;
|
|
UInt32 bindingIndex;
|
|
ShaderBindingType type;
|
|
nzsl::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_RENDERER_RENDERPIPELINELAYOUT_HPP
|