[Fix]: save order of uniform names, and apply it at linking and buffer mapping

This commit is contained in:
2025-06-08 20:19:06 +08:00
parent c183203264
commit 40a458b743
6 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ namespace MG_Util::Program {
std::pair<std::string, std::string> GenerateDefaultUBOForGLSL(const std::pair<std::string,
std::string>& glslSources);
void GenerateDefaultUBOForGLSL_Multi(
MG_Global::unordered_map<GLuint, std::string> &shaderSources);
MG_Global::unordered_map<GLuint, std::string> &shaderSources, std::vector<std::string>& outUniformBufferNames);
}
#endif //MOBILEGL_GLSLTOOL_H