vulkan/metal: fix a typo preventing non-array struct field uniforms from working.

This commit is contained in:
Sasha Szpakowski
2024-04-06 09:46:40 -03:00
parent 9b3eff1f62
commit 455d02c695
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ void Shader::buildLocalUniforms(const spirv_cross::CompilerMSL &msl, const spirv
}
else
{
std::string structname = name = ".";
std::string structname = name + ".";
buildLocalUniforms(msl, membertype, offset, structname);
}
continue;
+1 -1
View File
@@ -427,7 +427,7 @@ void Shader::buildLocalUniforms(spirv_cross::Compiler &comp, const spirv_cross::
}
else
{
std::string structname = name = ".";
std::string structname = name + ".";
buildLocalUniforms(comp, memberType, offset, structname);
}
continue;