PDA

View Full Version : Deprecated in 1.2 (clCreateFromGLTexture2D)



kalx
03-14-2012, 08:43 AM
What are the recommended replacements for the functions deprecated in 1.2?
More specifically, clCreateFromGLTexture2D.

There is clEnqueueCopyBufferToImage, so it should be possible to create a shared image and copy from a CL buffer. But this consumes extra GPU memory, and time copying.

http://www.khronos.org/registry/cl/sdk/ ... cated.html (http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/deprecated.html)

cheers

kalx
03-14-2012, 11:04 AM
Looks like clCreateFromGLTexture will handle all texture types.

http://www.khronos.org/registry/cl/sdk/ ... xture.html (http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateFromGLTexture.html)