Exposing IsMetalRendererAvailable as public API

25 views
Skip to first unread message

BerstanioDev

unread,
Aug 20, 2024, 9:23:29 AMAug 20
to angleproject
Hi,

I'm looking for a way to determine, whether ANGLE will use the Metal render backend or the OpenGLES one on iOS.
From what I can tell, there exists currently only internal API like `angle::IsMetalRendererAvailable` which does this.
My approach was now, to expose this API through the `feature_support_utils`, which seems to work fine on my basic test.
I wanted to ask, whether there is a better way to do this and related to that, whether this project is willing to implement such an extension, if a standard API way does not exist currently.

Thanks in advance!

Geoff Lang

unread,
Aug 20, 2024, 9:58:10 AMAug 20
to bersta...@gmail.com, angleproject
We should probably call IsMetalRendererAvailable and conditionally expose the Metal EGL client extensions here. In the meantime, you can explicitly request Metal and if display creation fails, request OpenGLES.

--
You received this message because you are subscribed to the Google Groups "angleproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angleproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angleproject/c906872f-91e2-401b-8d3a-c1ae9d436a7cn%40googlegroups.com.

BerstanioDev

unread,
Aug 20, 2024, 10:28:35 AMAug 20
to angleproject
That sounds like a better solution, thank you!

For the moment I just apply this patch https://github.com/Berstanio/MetalANGLEKit/blob/master/angle_feature_util_metal_check.patch , which works good enough for me.

Reply all
Reply to author
Forward
0 new messages