mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 13:18:31 +09:00
[Fix]: (MG_Util/ShaderTranspiler): implement logic to reserve explicitly set frag outs
This commit is contained in:
@@ -15,6 +15,13 @@ namespace MobileGL {
|
|||||||
writableType.getQualifier().layoutLocation = it->second;
|
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);
|
TDefaultGlslIoResolver::reserverStorageSlot(ent, infoSink);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user