CIImage rendering to OpenGL ES 2.0 texture on iOS

Does anyone know how to render CIImage directly in an OpenGL ES 2.0 texture using drawImage: inRect: fromRect: from EAGL CIContext on iOS? Rendering via a regular CIContext via createCGImage: fromRect: then loading the image via GLKTextureLoader is too slow for me.

+6
source share
1 answer

There is a Wwdc session that covers just that. 2012 Session 511 (near the end). Basically what you want to do:

-Create output texture

-Make output framebuffer target texture

- bind the texture framebuffer to the output instead of the screen

-Now use drawImage: inRect: fromRect: for writing directly to a texture.

+6
source

All Articles