[Feat] (MG_Backend/DirectVulkan): more built-in function renames

This commit is contained in:
2026-05-05 18:33:20 +08:00
parent 5bd8e369c4
commit 0a000d1628
@@ -159,9 +159,11 @@ namespace MobileGL {
} }
} }
// Some shader packs define helpers with built-in GLSL names such as round(). // Some shader packs define helpers with built-in GLSL names such as round(), tanh(), or fma().
// These may pass OpenGL-style validation but fail when recompiled for Vulkan/SPIR-V generation. // These may pass OpenGL-style validation but fail when recompiled for Vulkan/SPIR-V generation.
RenameBuiltinShadowingFunction(source, "round", "mg_round"); RenameBuiltinShadowingFunction(source, "round", "mg_round");
RenameBuiltinShadowingFunction(source, "tanh", "mg_tanh");
RenameBuiltinShadowingFunction(source, "fma", "mg_fma");
} }
} // namespace ShaderTranspiler } // namespace ShaderTranspiler