Hi Andreas,

thanks for your reply, you are right and sorry for posting this version of the 
code by mistake:
I tried all possible values for that flag, but I also read somewhere that it 
should be mf.WRITE_ONLY.

I am using PyOpenCL 2011.2
and get_cl_header_version() says that I am on OpenCL 1.1
I am using the NVIDIA driver 295.33 for a NVIDIA GeForce GTX 580 on Kubuntu 
11.10

I did find a C-example of reading from a texture and writing to another texture 
on
http://forums.nvidia.com/index.php?showtopic=159923
but what I don't get is that in there I do not see any magic that I am 
obviously not doing ?


kind regards,

Joost.


On Fri 06/04/12 00:02 , Andreas Kloeckner [email protected] sent:
> On Fri, 06 Apr 2012 00:23:33 +0200, Joost Rekveld  > wrote:> Hello,
> >
> > since two days I am trying to get the sharing of
> a texture between> OpenGL and OpenCL working, but there must be
> something I am missing> here.
> >
> > For now I am trying to get an OpenCL-program to
> fill a texture and I now> have code that does not generate any exceptions,
> the textures are valid> in the OpenGl world since I can fill and display
> them and the textures> seem valid in the OpenCL world too, since I can
> query their imageformat> etc. The only thing is that the program doesn't
> seem to have any> effect.
> 
> Hi Joost,
> 
> To start out with, I'm no expert in CL-GL interop. But I seem to
> remember from somewhere that read-write images don't work on some
> hw. Have you tried making your image write-only? In any case, what
> CL implementation are you on?
> 
> Andreas
> 
> 
> 
> 


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to