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