From 1c3a3455aba52c5a6d99bbe074334517b42c252b Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 13 Nov 2025 12:46:18 +0800 Subject: [PATCH] [Fix]: (MG_Util/ShaderTranspiler): rename `explicitAttribLocations` to `explicitVertexInLocations` in ProgramAttrib --- MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp | 4 ++-- MobileGL/MG_Test/Program/ProgramUtilTest.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp b/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp index 0b035aa0..099eae53 100644 --- a/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp +++ b/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp @@ -86,7 +86,7 @@ namespace MobileGL { MG_Util::ShaderTranspiler::ProgramAttrib attrib{ .shaders = Move(shaders), - .explicitAttribLocations = m_explicitAttribLocations + .explicitVertexInLocations = m_explicitAttribLocations }; MGLOG_D("ProgramObject %u: Calling ShaderCompiler::LinkProgram", m_externalIndex); @@ -376,7 +376,7 @@ namespace MobileGL { ProgramAttrib attrib{ .shaders = Move(shaders), - .explicitAttribLocations = m_explicitAttribLocations + .explicitVertexInLocations = m_explicitAttribLocations }; MGLOG_D("ProgramObject %u: GenerateBinary - linking program for binary", m_externalIndex); auto programResult = ShaderCompiler::LinkProgram(attrib); diff --git a/MobileGL/MG_Test/Program/ProgramUtilTest.cpp b/MobileGL/MG_Test/Program/ProgramUtilTest.cpp index dfc33bff..c4548b39 100644 --- a/MobileGL/MG_Test/Program/ProgramUtilTest.cpp +++ b/MobileGL/MG_Test/Program/ProgramUtilTest.cpp @@ -396,7 +396,7 @@ TEST_F(ProgramUtilTest, CompileAndLinkBlitProgram) { ProgramAttrib programAttrib{// .shaderTypes = { GL_VERTEX_SHADER, GL_FRAGMENT_SHADER }, .shaders = {vs_res.value(), fs_res.value()}, - .explicitAttribLocations = attribLocations + .explicitVertexInLocations = attribLocations }; auto program_res = ShaderCompiler::LinkProgram(programAttrib);