Open GL ES vs Metal Core Image for CIContext

I have some custom filters written in Open GL Shading Language

c CIKernel

combined with some built-in filters. When I create CIContext

, would it be faster to use the automatic context (I'm guessing it isn't, but might be wrong) with Metal or Open GL ES? I use it for both images and videos, so would it be faster with a specific type?

I just need to be fast and behave well (everyone dreams right 😉).

Update: On the side of the note, I use UIImage

by converting this to CIImage

and then returning UIImage

when adding filters to my image. Will use Metal

or Open GL ES

for reference CIContext

in general or do I have to start using MTLTexture

and all to get some benefit?

+3


source to share





All Articles