Metal backend fails with this shader: https://www.shadertoy.com/view/NttSzB
Thanks for the report. This has been fixed and will ship in iOS15.2 and a future macOS release. (Workaround by not feeding modMirror1 a single-component swizzle but a temporary variable and then set the temporary to the swizzle. *** This bug has been marked as a duplicate of bug 230472 ***