Shader: Change module system (no longer based on path)
This commit is contained in:
@@ -8,10 +8,11 @@
|
||||
|
||||
namespace Nz::ShaderAst
|
||||
{
|
||||
inline Module::Module(UInt32 shaderLangVersion, const Uuid& uuid)
|
||||
inline Module::Module(UInt32 shaderLangVersion, std::string moduleName, const Uuid& uuid)
|
||||
{
|
||||
auto mutMetadata = std::make_shared<Metadata>();
|
||||
mutMetadata->moduleId = uuid;
|
||||
mutMetadata->moduleName = std::move(moduleName);
|
||||
mutMetadata->shaderLangVersion = shaderLangVersion;
|
||||
|
||||
metadata = std::move(mutMetadata);
|
||||
|
||||
Reference in New Issue
Block a user