Shader: Add module resolver + use modules for engine shaders

This commit is contained in:
Jérôme Leclercq
2022-03-10 21:00:10 +01:00
parent 98bd04e35a
commit db0c1e6e8c
30 changed files with 737 additions and 106 deletions

View File

@@ -10,11 +10,14 @@
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Shader/Config.hpp>
#include <Nazara/Shader/Ast/ConstantValue.hpp>
#include <memory>
#include <string>
#include <unordered_map>
namespace Nz
{
class ShaderModuleResolver;
class NAZARA_SHADER_API ShaderWriter
{
public:
@@ -27,6 +30,7 @@ namespace Nz
struct States
{
std::shared_ptr<ShaderModuleResolver> shaderModuleResolver;
std::unordered_map<UInt32, ShaderAst::ConstantValue> optionValues;
bool optimize = false;
bool sanitized = false;