Fix compilation with last nzsl version
This commit is contained in:
@@ -464,7 +464,7 @@ nzsl::Ast::ModulePtr ShaderGraph::ToModule() const
|
||||
for (const auto& structInfo : m_structs)
|
||||
{
|
||||
nzsl::Ast::StructDescription structDesc;
|
||||
structDesc.layout = nzsl::StructLayout::Std140;
|
||||
structDesc.layout = nzsl::Ast::MemoryLayout::Std140;
|
||||
structDesc.name = structInfo.name;
|
||||
|
||||
for (const auto& memberInfo : structInfo.members)
|
||||
|
||||
@@ -192,7 +192,7 @@ void MainWindow::OnCompile()
|
||||
|
||||
Nz::File file(fileName.toStdString(), Nz::OpenMode::WriteOnly);
|
||||
nzsl::Serializer serializer;
|
||||
nzsl::Ast::SerializeShader(serializer, shaderModule);
|
||||
nzsl::Ast::SerializeShader(serializer, *shaderModule);
|
||||
|
||||
const std::vector<std::uint8_t>& data = serializer.GetData();
|
||||
file.Write(data.data(), data.size());
|
||||
|
||||
Reference in New Issue
Block a user