diff --git a/src/modules/graphics/metal/Shader.mm b/src/modules/graphics/metal/Shader.mm index b188c336e..1f9c185ed 100644 --- a/src/modules/graphics/metal/Shader.mm +++ b/src/modules/graphics/metal/Shader.mm @@ -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; diff --git a/src/modules/graphics/vulkan/Shader.cpp b/src/modules/graphics/vulkan/Shader.cpp index ee5346771..f2cfa3e3c 100644 --- a/src/modules/graphics/vulkan/Shader.cpp +++ b/src/modules/graphics/vulkan/Shader.cpp @@ -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;