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 directly to VRAM, primarily because 
the CPU can't see it directly).

> If so, is there a way to pass a CIImage directly to CALayer without going 
> beyond VRAM?


I'm fairly certain that CALayer doesn't support a CIImage as its contents, but 
you can assign a CGImageRef to it, and then assign all of the filters you used 
to generate that CIImage to the layer. In the case you outline however, there 
is no advantage to be had – just assign the CGImageRef to the CALayer's 
contents and you are likely to be as optimal as possible.
--
David Duncan

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to