This commit is contained in:
Jérôme Leclercq
2022-03-07 19:20:14 +01:00
parent d72ac9cc73
commit 012712b8d0
13 changed files with 398 additions and 327 deletions

View File

@@ -8,10 +8,10 @@
namespace Nz::ShaderAst
{
inline Module::Module(UInt32 shaderLangVersion)
inline Module::Module(UInt32 shaderLangVersion, const Uuid& uuid)
{
auto mutMetadata = std::make_shared<Metadata>();
mutMetadata->moduleId = Uuid::Generate();
mutMetadata->moduleId = uuid;
mutMetadata->shaderLangVersion = shaderLangVersion;
metadata = std::move(mutMetadata);