Login  Register

Re: opencl images

Posted by Michael Bien on Jun 24, 2010; 5:02pm
URL: https://forum.jogamp.org/opencl-images-tp918750p920007.html

evening,

On 06/24/2010 07:09 AM, notzed [via jogamp] wrote:

> Morning,
>
> I want to research the use of opencl image2d_t objects for some code I
> have, but it seems there is no way to create such an image without
> using the opengl interoperability stuff - that I have been able to
> find.  e.g. CLImage2d.createImage() is never called in jocl (at least
> according to netbeans in the latest git checkout).
>
> Is using the opengl stuff (currently) the only way to create opencl
> images with jocl?

the image factory methods in the high level api aren't there yet.

But i see you figured out how to call the other factories :)

... will begin with that early next weak.


>
> If so (and this is perhaps out of scope for this list), is there an
> 'opencl' difference between using a renderbuffer vs a texture.

a renderbuffer should end up in a CLGLImage2d and a GL texture in a
CLGLTextureND. The difference between image and texture is that a
texture has samplers an image not. (texture extends image in the high
level binding)


regards,

michael