From 455d02c6952d5955022d177b0c1f8a470ed7097a Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sat, 6 Apr 2024 09:46:40 -0300 Subject: [PATCH] vulkan/metal: fix a typo preventing non-array struct field uniforms from working. --- src/modules/graphics/metal/Shader.mm | 2 +- src/modules/graphics/vulkan/Shader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;