In practice the best way to get an OpenGL-ish API is WebGL2. I don’t think Apple would dare to break that.