From c30ce008ca6b44c38c5e87a85c01661a1d15ecca Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 9 Nov 2025 18:21:46 +0800 Subject: [PATCH] [Chore] (MG_State/ProgramObject): more friendly global ubo debug msg --- MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp b/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp index 1f96071d..993bdc49 100644 --- a/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp +++ b/MobileGL/MG_State/GLState/ProgramState/ProgramObject.cpp @@ -401,8 +401,8 @@ namespace MobileGL { SpvcSession session(spv); auto result = session.ParseMetaData(); if (result < 0) { - MGLOG_E("ProgramObject %u: GenerateBinary - SpvcSession::ParseMetaData failed for module %zu", - m_externalIndex, i); + MGLOG_E("ProgramObject %u: GenerateBinary - SpvcSession::ParseMetaData failed for module %zu, err = %d%s", + m_externalIndex, i, result, (result == SPVC_ERROR_INVALID_SPIRV ? ". Probably no global UBO?" : "")); continue; } // auto srcResult = ShaderCompiler::DecompileShader(session); @@ -452,6 +452,7 @@ namespace MobileGL { void ProgramObject::WaitUntilGenerationCompleted() { MGLOG_D("ProgramObject %u: WaitUntilGenerationCompleted called (no-op)", m_externalIndex); // currently no-op, but keep log for debugging + // will probably be useful when multi-threaded compilation } void ProgramObject::SetExplicitAttribLocation(Uint index, const char* name) {