CIImage directly to CALayer contents?

2011-07-01 Thread Oleg Krupnov
Hi, I'm a little shaky in this area, so I beg your pardon. CALayer has a contents property which is a CGImageRef, i.e. a Core Graphic image. CGImages are stored in RAM. CALayer is built on top of OpenGL and uses VRAM to store its bitmap image internally (a texture). Now suppose that I have a

Re: CIImage directly to CALayer contents?

2011-07-01 Thread David Duncan
On Jul 1, 2011, at 3:16 AM, Oleg Krupnov wrote: Now suppose that I have a CIImage constructed with +imageWithContentsOfURL. The image is loaded (lazily) directly to VRAM. Not quite. There is still a trip through RAM that is necessary to get to VRAM (basically it is nearly impossible to go