[Fix]: (MG_Util/ShaderTranspiler): implement logic to reserve explicitly set frag outs

This commit is contained in:
2025-11-13 12:54:05 +08:00
parent 1c3a3455ab
commit 5b2d18fdff
@@ -15,6 +15,13 @@ namespace MobileGL {
writableType.getQualifier().layoutLocation = it->second;
}
}
if (currentStage == EShLangFragment && type.getQualifier().isPipeOutput()) {
auto it = m_explicitFragOuts.find(name.c_str());
if (it != m_explicitFragOuts.end()) {
auto& writableType = ent.symbol->getWritableType();
writableType.getQualifier().layoutLocation = it->second;
}
}
TDefaultGlslIoResolver::reserverStorageSlot(ent, infoSink);
}
}