[Fix] (MG/GLSLTool): Finally fixing blur shader!

- use glslang mapIO() function to correctly link shader in/out varyings
- no need to flip y (already using VK_KHR_maintenance1 to specify negative viewport height)
- use pointers to avoid unnecessary copying
This commit is contained in:
2025-06-24 16:33:16 +08:00
parent 20a945c6f0
commit 0c031d3e0b
4 changed files with 18 additions and 21 deletions
+4 -4
View File
@@ -119,14 +119,14 @@ namespace MG_Util::Program {
if (MG_Global::Common::LogLevel > MG_Constants::Common::LOG_LEVEL_DEBUG)
return;
auto prog = (ProgramObject)state.GetProgramObject(program);
if (!prog.linked.toBool()) {
auto* prog = state.GetProgramObject(program);
if (!prog->linked.toBool()) {
MG_Util::Debug::LogE("Program %u not linked", program);
return;
}
MG_Util::Debug::LogD("=== Dumping uniforms for program %u ===", program);
for(const auto& [name, loc] : prog.uniformLocations) {
const auto& value = prog.uniformValues.at(name);
for(const auto& [name, loc] : prog->uniformLocations) {
const auto& value = prog->uniformValues.at(name);
MG_Util::Debug::LogD("Uniform: %-24s Location: %-4d Type: %-16s Count: %-3d Value: %s",
name.c_str(),
loc,