// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Shader module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz::ShaderAst { inline Module::Module(UInt32 shaderLangVersion, std::string moduleName, const Uuid& uuid) { auto mutMetadata = std::make_shared(); mutMetadata->moduleId = uuid; mutMetadata->moduleName = std::move(moduleName); mutMetadata->shaderLangVersion = shaderLangVersion; metadata = std::move(mutMetadata); rootNode = ShaderBuilder::MultiStatement(); } inline Module::Module(std::shared_ptr metadata, std::vector importedModules) : Module(std::move(metadata), ShaderBuilder::MultiStatement(), std::move(importedModules)) { } inline Module::Module(std::shared_ptr Metadata, MultiStatementPtr RootNode, std::vector ImportedModules) : metadata(std::move(Metadata)), importedModules(std::move(ImportedModules)), rootNode(std::move(RootNode)) { } } #include