diff --git a/tools/shaderc/shaderc_metal.cpp b/tools/shaderc/shaderc_metal.cpp index 516b2d1d6..0404704f2 100644 --- a/tools/shaderc/shaderc_metal.cpp +++ b/tools/shaderc/shaderc_metal.cpp @@ -539,7 +539,8 @@ namespace bgfx { namespace metal Uniform un; un.name = program->getUniformName(ii); - if (bx::hasSuffix(un.name.c_str(), ".@data") ) + if (bx::hasSuffix(un.name.c_str(), ".@data") + || !bx::strFind(un.name.c_str(), ".@data.").isEmpty() ) { continue; } diff --git a/tools/shaderc/shaderc_spirv.cpp b/tools/shaderc/shaderc_spirv.cpp index 7678cec39..fa2866d5f 100644 --- a/tools/shaderc/shaderc_spirv.cpp +++ b/tools/shaderc/shaderc_spirv.cpp @@ -664,7 +664,8 @@ namespace bgfx { namespace spirv Uniform un; un.name = program->getUniformName(ii); - if (bx::hasSuffix(un.name.c_str(), ".@data") ) + if (bx::hasSuffix(un.name.c_str(), ".@data") + || !bx::strFind(un.name.c_str(), ".@data.").isEmpty() ) { continue; }