Browse Source

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

Sasha Szpakowski 1 year ago
parent
commit
455d02c695
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/modules/graphics/metal/Shader.mm
  2. 1 1
      src/modules/graphics/vulkan/Shader.cpp

+ 1 - 1
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;

+ 1 - 1
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;