MAME top-of-tree has an updated BGFX where the HLSL shader works fine on the Metal backend. This will be in 0.216, of course.