Swung0x48
dd2a62228f
[Fix, Feat, Test] (MG_Util, MG_Backend, MG_Impl, MG_State): correct the log severity ordering and unwind the diagnostics it silenced
2026-08-13 02:02:49 -04:00
swung0x48
bcb0e894ef
[Fix, Test] (MG_State, MG_Backend/DirectGLES, MG_Util, MG_IntegrationTest, MG_Test): array layout(binding=N) elements bind consecutively, a read+write image reaches ESSL legally, compute local_size comes from the linked intermediate, and glShaderStorageBlockBinding is baked into the generated source
2026-08-11 23:05:21 -04:00
BZLZHH
d6caed7822
[Fix] (MG_Util, MG_State): five latent frontend bugs the async work made load-bearing
...
- SpvcSession's move constructor and move assignment dropped the parsed
metadata, so a moved-to session silently reported empty reflection.
- ParseComputeLocalSize used std::stoull, whose std::out_of_range escaped
glCompileShader on an oversized local_size literal; now std::from_chars
saturating to UINT_MAX, pinned by a regression test that reproduced the
escaping exception.
- The compute local_size std::regex was rebuilt on every compile; hoisted.
- LinkProgram dumped every shader's full source through MGLOG_D per link.
- glslang::FinalizeProcess ran before the GL context tore down, leaving the
context's live TShaders pointing at freed builtin symbol tables.
2026-08-08 05:28:28 -04:00
swung0x48
cf8f928db8
[Fix] (MG_Impl/GLImpl, MG_State): fallback UBO backing for optimizer-eliminated uniforms (null-MapUBO SIGSEGV in KHR-GL33 do_while loops) + per-element locations/offsets for array uniforms incl. nested struct arrays (size assert in KHR-GL33 struct.uniform); demote uniform write assert to log-and-clamp
2026-07-16 03:31:32 -04:00
swung0x48
4a3a44924a
[Refactor] (MG_Backend/DirectVulkan/ProgramFactory): refactor uniform reflection
2026-04-03 16:45:11 +08:00
swung0x48
1b2a7989af
[Fix] (MG_Util/ShaderTranspiler/SpvcSession): use proper usage bit to select the right code path. Fix bugs along the way
2026-04-01 14:57:00 +08:00
swung0x48
83d1ce177e
[Optimization] (MG_Util/ShaderTranspiler/SpvcSession): use SPIRV-Reflect to avoid full AST parse, speeding up reflection
2026-04-01 10:28:37 +08:00
swung0x48
a039ce0987
[Chore] (MG_State/ProgramState): some renames
2026-03-26 09:49:05 +08:00
BZLZHH
20fbfc2956
[Chore] (LICENSE): Switch project license to LGPLv3.
2026-01-18 09:33:33 +08:00
BZLZHH
3714e275ab
[Chore] (All): Update copyright year in source code files.
2026-01-01 00:42:06 +08:00
BZLZHH
e7d9da42dc
[Chore] (All): Adjust copyright declaration.
2025-12-31 21:49:54 +08:00
BZLZHH
8ed8efe347
[Chore] (All): Add standardized source file header and update script.
2025-12-31 15:45:34 +08:00
BZLZHH
a6b34ee5bf
[Chore] (...): Format code.
2025-11-28 15:17:50 +08:00
swung0x48
57dd0fe480
[Feat]: implement glBindVertexAttribLocation in DirectGLES backend (fixing OptiFine?)
2025-11-04 22:16:16 +08:00
swung0x48
2416225502
[Fix] (MG_State/ProgramState): select correct binary to do reflection
2025-10-29 10:28:59 +08:00
BZLZHH
ee971306ca
[Misc] (All): Run format_code.sh
2025-10-02 15:11:38 +08:00
swung0x48
70b440839d
[Feat] (MG_Util/SpvcSession): reflect member types from SPIR-V binary
2025-08-14 10:33:15 +08:00
swung0x48
df444655e3
[Feat] (MG_State/Program): retrieve/generate layout location from/for program, and retrieve generated ubo size and all the offsets of members
2025-08-13 23:14:22 +08:00
BZLZHH
93ca669929
[Refactor] (All): Restructure include system.
2025-08-09 23:10:34 +08:00
swung0x48
916fdf40af
[Feat] (MG_Util/ShaderCompiler): extract global UBO offset from GL plain uniforms
2025-08-08 13:46:08 +08:00
swung0x48
fcd52a9177
[Fix] (MG_Util/ShaderCompiler): make glslang don't emit demote to replace discard
2025-08-08 10:30:25 +08:00
swung0x48
38c0a54fcc
[Feat] (MG_Util/ShaderTranspiler): separate SpvcSession
2025-08-07 12:53:51 +08:00