Does someone know how to render a CIImage directly into an OpenGL ES 2.0 texture via drawImage:inRect:fromRect: from an EAGL CIContext on iOS? Rendering via a normal CIContext via createCGImage:fromRect: then loading the image via GLKTextureLoader is too slow for me.
There is a Wwdc session that covers exactly this. 2012 Session 511 (near the end). Basically what you want to do is:
-Create output texture
-Make output texture the target of a framebuffer
-bind the texture framebuffer as output instead of the screen
-Now use drawImage: inRect: fromRect: to write directly to the texture.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With